const int def_val = 2;
static void Main(string[] args)
{
int num = 0;
if(int.TryParse(Console.ReadLine(), out num) && num >= 1 && num <= 15)
{
Console.WriteLine(Convert.ToInt64(Math.Pow(Math.Pow(def_val, num) + 1, def_val)));
}
else
{
Console.WriteLine("허용된 숫자만 입력하세요~!!");
}
}
Y29uc3QgaW50IGRlZl92YWwgPSAyOwoKc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQp7CiAgICAgICAgICAgIGludCBudW0gPSAwOwoKICAgICAgICBpZihpbnQuVHJ5UGFyc2UoQ29uc29sZS5SZWFkTGluZSgpLCBvdXQgbnVtKSAmJiBudW0gPj0gMSAmJiBudW0gPD0gMTUpCiAgICAgICAgewogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShDb252ZXJ0LlRvSW50NjQoTWF0aC5Qb3coTWF0aC5Qb3coZGVmX3ZhbCwgbnVtKSArIDEsIGRlZl92YWwpKSk7CiAgICAgICAgfQogICAgICAgIGVsc2UKICAgICAgICB7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCLtl4jsmqnrkJwg7Iir7J6Q66eMIOyeheugpe2VmOyEuOyalH4hISIpOwogICAgICAgIH0KfQo=