#!/usr/bin/perl
use warnings;
use strict;
$\ = $/;
while(<>){
$_ == 2 ? 2 * 3 * 5 :
$_ == 3 ? 3 * 2 * 5 :
$_ * 2 * 3
};
}
IyEvdXNyL2Jpbi9wZXJsCgp1c2Ugd2FybmluZ3M7CnVzZSBzdHJpY3Q7CgokXCA9ICQvOwoKd2hpbGUoPD4pewoJY2hvbXA7CglwcmludCBkbyB7IAoJCQkkXyA9PSAyID8gMiAqIDMgKiA1IDoKCQkJJF8gPT0gMyA/IDMgKiAyICogNSA6CgkJCSRfICogMiAqIDMKCQl9OwoJCgl9Cg==