<image>

Input

The input contains two integers row, col (0 ≤ row, col ≤ 63), separated by a single space.

Output

Output "IN" or "OUT".

Examples

Input


0 0


Output


OUT


Input


27 0


Output


IN


Input


0 27


Output


OUT


Input


27 27


Output


IN
#include <bits/stdc++.h>
using namespace std;
string t[4100];
int main() {
  t[0] = "OUT";
  t[1] = "OUT";
  t[2] = "OUT";
  t[3] = "OUT";
  t[4] = "OUT";
  t[5] = "OUT";
  t[6] = "OUT";
  t[7] = "OUT";
  t[8] = "OUT";
  t[9] = "OUT";
  t[10] = "OUT";
  t[11] = "OUT";
  t[12] = "OUT";
  t[13] = "OUT";
  t[14] = "OUT";
  t[15] = "OUT";
  t[16] = "OUT";
  t[17] = "OUT";
  t[18] = "OUT";
  t[19] = "OUT";
  t[20] = "OUT";
  t[21] = "OUT";
  t[22] = "OUT";
  t[23] = "OUT";
  t[24] = "OUT";
  t[25] = "OUT";
  t[26] = "IN";
  t[27] = "IN";
  t[28] = "IN";
  t[29] = "IN";
  t[30] = "IN";
  t[31] = "IN";
  t[32] = "IN";
  t[33] = "IN";
  t[34] = "IN";
  t[35] = "IN";
  t[36] = "IN";
  t[37] = "IN";
  t[38] = "OUT";
  t[39] = "OUT";
  t[40] = "OUT";
  t[41] = "OUT";
  t[42] = "OUT";
  t[43] = "OUT";
  t[44] = "OUT";
  t[45] = "OUT";
  t[46] = "OUT";
  t[47] = "OUT";
  t[48] = "OUT";
  t[49] = "OUT";
  t[50] = "OUT";
  t[51] = "OUT";
  t[52] = "OUT";
  t[53] = "OUT";
  t[54] = "OUT";
  t[55] = "OUT";
  t[56] = "OUT";
  t[57] = "OUT";
  t[58] = "OUT";
  t[59] = "OUT";
  t[60] = "OUT";
  t[61] = "OUT";
  t[62] = "OUT";
  t[63] = "OUT";
  t[64] = "OUT";
  t[65] = "OUT";
  t[66] = "OUT";
  t[67] = "OUT";
  t[68] = "OUT";
  t[69] = "OUT";
  t[70] = "OUT";
  t[71] = "OUT";
  t[72] = "OUT";
  t[73] = "OUT";
  t[74] = "OUT";
  t[75] = "OUT";
  t[76] = "OUT";
  t[77] = "OUT";
  t[78] = "OUT";
  t[79] = "OUT";
  t[80] = "OUT";
  t[81] = "OUT";
  t[82] = "OUT";
  t[83] = "OUT";
  t[84] = "OUT";
  t[85] = "OUT";
  t[86] = "IN";
  t[87] = "IN";
  t[88] = "IN";
  t[89] = "IN";
  t[90] = "IN";
  t[91] = "IN";
  t[92] = "IN";
  t[93] = "IN";
  t[94] = "IN";
  t[95] = "IN";
  t[96] = "IN";
  t[97] = "IN";
  t[98] = "IN";
  t[99] = "IN";
  t[100] = "IN";
  t[101] = "IN";
  t[102] = "IN";
  t[103] = "IN";
  t[104] = "IN";
  t[105] = "IN";
  t[106] = "OUT";
  t[107] = "OUT";
  t[108] = "OUT";
  t[109] = "OUT";
  t[110] = "OUT";
  t[111] = "OUT";
  t[112] = "OUT";
  t[113] = "OUT";
  t[114] = "OUT";
  t[115] = "OUT";
  t[116] = "OUT";
  t[117] = "OUT";
  t[118] = "OUT";
  t[119] = "OUT";
  t[120] = "OUT";
  t[121] = "OUT";
  t[122] = "OUT";
  t[123] = "OUT";
  t[124] = "OUT";
  t[125] = "OUT";
  t[126] = "OUT";
  t[127] = "OUT";
  t[128] = "OUT";
  t[129] = "OUT";
  t[130] = "OUT";
  t[131] = "OUT";
  t[132] = "OUT";
  t[133] = "OUT";
  t[134] = "OUT";
  t[135] = "OUT";
  t[136] = "OUT";
  t[137] = "OUT";
  t[138] = "OUT";
  t[139] = "OUT";
  t[140] = "OUT";
  t[141] = "OUT";
  t[142] = "OUT";
  t[143] = "OUT";
  t[144] = "OUT";
  t[145] = "OUT";
  t[146] = "OUT";
  t[147] = "OUT";
  t[148] = "IN";
  t[149] = "IN";
  t[150] = "IN";
  t[151] = "IN";
  t[152] = "IN";
  t[153] = "IN";
  t[154] = "IN";
  t[155] = "IN";
  t[156] = "IN";
  t[157] = "IN";
  t[158] = "IN";
  t[159] = "IN";
  t[160] = "IN";
  t[161] = "IN";
  t[162] = "IN";
  t[163] = "IN";
  t[164] = "IN";
  t[165] = "IN";
  t[166] = "IN";
  t[167] = "IN";
  t[168] = "IN";
  t[169] = "IN";
  t[170] = "IN";
  t[171] = "IN";
  t[172] = "OUT";
  t[173] = "OUT";
  t[174] = "OUT";
  t[175] = "OUT";
  t[176] = "OUT";
  t[177] = "OUT";
  t[178] = "OUT";
  t[179] = "OUT";
  t[180] = "OUT";
  t[181] = "OUT";
  t[182] = "OUT";
  t[183] = "OUT";
  t[184] = "OUT";
  t[185] = "OUT";
  t[186] = "OUT";
  t[187] = "OUT";
  t[188] = "OUT";
  t[189] = "OUT";
  t[190] = "OUT";
  t[191] = "OUT";
  t[192] = "OUT";
  t[193] = "OUT";
  t[194] = "OUT";
  t[195] = "OUT";
  t[196] = "OUT";
  t[197] = "OUT";
  t[198] = "OUT";
  t[199] = "OUT";
  t[200] = "OUT";
  t[201] = "OUT";
  t[202] = "OUT";
  t[203] = "OUT";
  t[204] = "OUT";
  t[205] = "OUT";
  t[206] = "OUT";
  t[207] = "OUT";
  t[208] = "OUT";
  t[209] = "IN";
  t[210] = "OUT";
  t[211] = "OUT";
  t[212] = "IN";
  t[213] = "IN";
  t[214] = "IN";
  t[215] = "IN";
  t[216] = "IN";
  t[217] = "IN";
  t[218] = "IN";
  t[219] = "IN";
  t[220] = "IN";
  t[221] = "IN";
  t[222] = "IN";
  t[223] = "IN";
  t[224] = "IN";
  t[225] = "IN";
  t[226] = "IN";
  t[227] = "IN";
  t[228] = "IN";
  t[229] = "IN";
  t[230] = "IN";
  t[231] = "IN";
  t[232] = "IN";
  t[233] = "IN";
  t[234] = "IN";
  t[235] = "IN";
  t[236] = "IN";
  t[237] = "IN";
  t[238] = "IN";
  t[239] = "OUT";
  t[240] = "OUT";
  t[241] = "OUT";
  t[242] = "OUT";
  t[243] = "OUT";
  t[244] = "OUT";
  t[245] = "OUT";
  t[246] = "OUT";
  t[247] = "OUT";
  t[248] = "OUT";
  t[249] = "OUT";
  t[250] = "OUT";
  t[251] = "OUT";
  t[252] = "OUT";
  t[253] = "OUT";
  t[254] = "OUT";
  t[255] = "OUT";
  t[256] = "OUT";
  t[257] = "OUT";
  t[258] = "OUT";
  t[259] = "OUT";
  t[260] = "OUT";
  t[261] = "OUT";
  t[262] = "OUT";
  t[263] = "OUT";
  t[264] = "OUT";
  t[265] = "OUT";
  t[266] = "OUT";
  t[267] = "OUT";
  t[268] = "OUT";
  t[269] = "OUT";
  t[270] = "OUT";
  t[271] = "OUT";
  t[272] = "IN";
  t[273] = "IN";
  t[274] = "OUT";
  t[275] = "OUT";
  t[276] = "OUT";
  t[277] = "IN";
  t[278] = "IN";
  t[279] = "IN";
  t[280] = "IN";
  t[281] = "IN";
  t[282] = "IN";
  t[283] = "IN";
  t[284] = "IN";
  t[285] = "IN";
  t[286] = "IN";
  t[287] = "IN";
  t[288] = "IN";
  t[289] = "IN";
  t[290] = "IN";
  t[291] = "IN";
  t[292] = "IN";
  t[293] = "IN";
  t[294] = "IN";
  t[295] = "IN";
  t[296] = "IN";
  t[297] = "IN";
  t[298] = "IN";
  t[299] = "IN";
  t[300] = "IN";
  t[301] = "IN";
  t[302] = "IN";
  t[303] = "IN";
  t[304] = "OUT";
  t[305] = "OUT";
  t[306] = "OUT";
  t[307] = "OUT";
  t[308] = "OUT";
  t[309] = "OUT";
  t[310] = "OUT";
  t[311] = "OUT";
  t[312] = "OUT";
  t[313] = "OUT";
  t[314] = "OUT";
  t[315] = "OUT";
  t[316] = "OUT";
  t[317] = "OUT";
  t[318] = "OUT";
  t[319] = "OUT";
  t[320] = "OUT";
  t[321] = "OUT";
  t[322] = "OUT";
  t[323] = "OUT";
  t[324] = "OUT";
  t[325] = "OUT";
  t[326] = "OUT";
  t[327] = "OUT";
  t[328] = "OUT";
  t[329] = "OUT";
  t[330] = "OUT";
  t[331] = "OUT";
  t[332] = "OUT";
  t[333] = "OUT";
  t[334] = "IN";
  t[335] = "IN";
  t[336] = "IN";
  t[337] = "IN";
  t[338] = "IN";
  t[339] = "OUT";
  t[340] = "OUT";
  t[341] = "IN";
  t[342] = "IN";
  t[343] = "IN";
  t[344] = "IN";
  t[345] = "IN";
  t[346] = "IN";
  t[347] = "IN";
  t[348] = "IN";
  t[349] = "IN";
  t[350] = "IN";
  t[351] = "IN";
  t[352] = "IN";
  t[353] = "IN";
  t[354] = "IN";
  t[355] = "IN";
  t[356] = "IN";
  t[357] = "IN";
  t[358] = "IN";
  t[359] = "IN";
  t[360] = "IN";
  t[361] = "IN";
  t[362] = "IN";
  t[363] = "IN";
  t[364] = "IN";
  t[365] = "IN";
  t[366] = "IN";
  t[367] = "IN";
  t[368] = "IN";
  t[369] = "IN";
  t[370] = "OUT";
  t[371] = "OUT";
  t[372] = "OUT";
  t[373] = "OUT";
  t[374] = "OUT";
  t[375] = "OUT";
  t[376] = "OUT";
  t[377] = "OUT";
  t[378] = "OUT";
  t[379] = "OUT";
  t[380] = "OUT";
  t[381] = "OUT";
  t[382] = "OUT";
  t[383] = "OUT";
  t[384] = "OUT";
  t[385] = "OUT";
  t[386] = "OUT";
  t[387] = "OUT";
  t[388] = "OUT";
  t[389] = "OUT";
  t[390] = "OUT";
  t[391] = "OUT";
  t[392] = "OUT";
  t[393] = "OUT";
  t[394] = "OUT";
  t[395] = "OUT";
  t[396] = "OUT";
  t[397] = "IN";
  t[398] = "IN";
  t[399] = "IN";
  t[400] = "IN";
  t[401] = "IN";
  t[402] = "IN";
  t[403] = "OUT";
  t[404] = "OUT";
  t[405] = "OUT";
  t[406] = "IN";
  t[407] = "IN";
  t[408] = "IN";
  t[409] = "IN";
  t[410] = "IN";
  t[411] = "IN";
  t[412] = "IN";
  t[413] = "IN";
  t[414] = "IN";
  t[415] = "IN";
  t[416] = "IN";
  t[417] = "IN";
  t[418] = "IN";
  t[419] = "IN";
  t[420] = "IN";
  t[421] = "IN";
  t[422] = "IN";
  t[423] = "IN";
  t[424] = "IN";
  t[425] = "IN";
  t[426] = "IN";
  t[427] = "IN";
  t[428] = "IN";
  t[429] = "IN";
  t[430] = "IN";
  t[431] = "IN";
  t[432] = "IN";
  t[433] = "IN";
  t[434] = "IN";
  t[435] = "OUT";
  t[436] = "OUT";
  t[437] = "OUT";
  t[438] = "OUT";
  t[439] = "OUT";
  t[440] = "OUT";
  t[441] = "OUT";
  t[442] = "OUT";
  t[443] = "OUT";
  t[444] = "OUT";
  t[445] = "OUT";
  t[446] = "OUT";
  t[447] = "OUT";
  t[448] = "OUT";
  t[449] = "OUT";
  t[450] = "OUT";
  t[451] = "OUT";
  t[452] = "OUT";
  t[453] = "OUT";
  t[454] = "OUT";
  t[455] = "OUT";
  t[456] = "OUT";
  t[457] = "OUT";
  t[458] = "OUT";
  t[459] = "IN";
  t[460] = "IN";
  t[461] = "IN";
  t[462] = "IN";
  t[463] = "IN";
  t[464] = "IN";
  t[465] = "IN";
  t[466] = "IN";
  t[467] = "IN";
  t[468] = "OUT";
  t[469] = "OUT";
  t[470] = "IN";
  t[471] = "IN";
  t[472] = "IN";
  t[473] = "IN";
  t[474] = "IN";
  t[475] = "IN";
  t[476] = "IN";
  t[477] = "IN";
  t[478] = "IN";
  t[479] = "IN";
  t[480] = "IN";
  t[481] = "IN";
  t[482] = "IN";
  t[483] = "IN";
  t[484] = "IN";
  t[485] = "IN";
  t[486] = "IN";
  t[487] = "IN";
  t[488] = "IN";
  t[489] = "IN";
  t[490] = "IN";
  t[491] = "IN";
  t[492] = "IN";
  t[493] = "IN";
  t[494] = "IN";
  t[495] = "IN";
  t[496] = "IN";
  t[497] = "IN";
  t[498] = "IN";
  t[499] = "IN";
  t[500] = "IN";
  t[501] = "OUT";
  t[502] = "OUT";
  t[503] = "OUT";
  t[504] = "OUT";
  t[505] = "OUT";
  t[506] = "OUT";
  t[507] = "OUT";
  t[508] = "OUT";
  t[509] = "OUT";
  t[510] = "OUT";
  t[511] = "OUT";
  t[512] = "OUT";
  t[513] = "OUT";
  t[514] = "OUT";
  t[515] = "OUT";
  t[516] = "OUT";
  t[517] = "OUT";
  t[518] = "OUT";
  t[519] = "OUT";
  t[520] = "OUT";
  t[521] = "OUT";
  t[522] = "IN";
  t[523] = "IN";
  t[524] = "IN";
  t[525] = "IN";
  t[526] = "IN";
  t[527] = "IN";
  t[528] = "IN";
  t[529] = "IN";
  t[530] = "IN";
  t[531] = "IN";
  t[532] = "OUT";
  t[533] = "OUT";
  t[534] = "OUT";
  t[535] = "IN";
  t[536] = "IN";
  t[537] = "IN";
  t[538] = "IN";
  t[539] = "IN";
  t[540] = "IN";
  t[541] = "IN";
  t[542] = "IN";
  t[543] = "IN";
  t[544] = "IN";
  t[545] = "IN";
  t[546] = "IN";
  t[547] = "IN";
  t[548] = "IN";
  t[549] = "IN";
  t[550] = "IN";
  t[551] = "IN";
  t[552] = "IN";
  t[553] = "IN";
  t[554] = "IN";
  t[555] = "IN";
  t[556] = "IN";
  t[557] = "IN";
  t[558] = "IN";
  t[559] = "IN";
  t[560] = "IN";
  t[561] = "IN";
  t[562] = "IN";
  t[563] = "IN";
  t[564] = "IN";
  t[565] = "IN";
  t[566] = "OUT";
  t[567] = "OUT";
  t[568] = "OUT";
  t[569] = "OUT";
  t[570] = "OUT";
  t[571] = "OUT";
  t[572] = "OUT";
  t[573] = "OUT";
  t[574] = "OUT";
  t[575] = "OUT";
  t[576] = "OUT";
  t[577] = "OUT";
  t[578] = "OUT";
  t[579] = "OUT";
  t[580] = "OUT";
  t[581] = "OUT";
  t[582] = "OUT";
  t[583] = "OUT";
  t[584] = "OUT";
  t[585] = "IN";
  t[586] = "IN";
  t[587] = "IN";
  t[588] = "IN";
  t[589] = "IN";
  t[590] = "IN";
  t[591] = "IN";
  t[592] = "IN";
  t[593] = "IN";
  t[594] = "IN";
  t[595] = "IN";
  t[596] = "IN";
  t[597] = "OUT";
  t[598] = "OUT";
  t[599] = "IN";
  t[600] = "IN";
  t[601] = "IN";
  t[602] = "IN";
  t[603] = "IN";
  t[604] = "IN";
  t[605] = "IN";
  t[606] = "IN";
  t[607] = "IN";
  t[608] = "IN";
  t[609] = "IN";
  t[610] = "IN";
  t[611] = "IN";
  t[612] = "IN";
  t[613] = "IN";
  t[614] = "IN";
  t[615] = "IN";
  t[616] = "IN";
  t[617] = "IN";
  t[618] = "IN";
  t[619] = "OUT";
  t[620] = "IN";
  t[621] = "IN";
  t[622] = "IN";
  t[623] = "IN";
  t[624] = "IN";
  t[625] = "IN";
  t[626] = "IN";
  t[627] = "IN";
  t[628] = "IN";
  t[629] = "IN";
  t[630] = "IN";
  t[631] = "OUT";
  t[632] = "OUT";
  t[633] = "OUT";
  t[634] = "OUT";
  t[635] = "OUT";
  t[636] = "OUT";
  t[637] = "OUT";
  t[638] = "OUT";
  t[639] = "OUT";
  t[640] = "OUT";
  t[641] = "OUT";
  t[642] = "OUT";
  t[643] = "OUT";
  t[644] = "OUT";
  t[645] = "OUT";
  t[646] = "OUT";
  t[647] = "OUT";
  t[648] = "IN";
  t[649] = "IN";
  t[650] = "IN";
  t[651] = "IN";
  t[652] = "IN";
  t[653] = "IN";
  t[654] = "IN";
  t[655] = "IN";
  t[656] = "IN";
  t[657] = "IN";
  t[658] = "IN";
  t[659] = "IN";
  t[660] = "IN";
  t[661] = "OUT";
  t[662] = "OUT";
  t[663] = "OUT";
  t[664] = "IN";
  t[665] = "OUT";
  t[666] = "IN";
  t[667] = "IN";
  t[668] = "IN";
  t[669] = "IN";
  t[670] = "IN";
  t[671] = "IN";
  t[672] = "IN";
  t[673] = "IN";
  t[674] = "IN";
  t[675] = "IN";
  t[676] = "IN";
  t[677] = "IN";
  t[678] = "IN";
  t[679] = "IN";
  t[680] = "IN";
  t[681] = "IN";
  t[682] = "IN";
  t[683] = "OUT";
  t[684] = "OUT";
  t[685] = "OUT";
  t[686] = "OUT";
  t[687] = "IN";
  t[688] = "IN";
  t[689] = "IN";
  t[690] = "IN";
  t[691] = "IN";
  t[692] = "IN";
  t[693] = "IN";
  t[694] = "IN";
  t[695] = "IN";
  t[696] = "OUT";
  t[697] = "OUT";
  t[698] = "OUT";
  t[699] = "OUT";
  t[700] = "OUT";
  t[701] = "OUT";
  t[702] = "OUT";
  t[703] = "OUT";
  t[704] = "OUT";
  t[705] = "OUT";
  t[706] = "OUT";
  t[707] = "OUT";
  t[708] = "OUT";
  t[709] = "OUT";
  t[710] = "OUT";
  t[711] = "IN";
  t[712] = "OUT";
  t[713] = "IN";
  t[714] = "IN";
  t[715] = "IN";
  t[716] = "IN";
  t[717] = "IN";
  t[718] = "IN";
  t[719] = "IN";
  t[720] = "IN";
  t[721] = "IN";
  t[722] = "IN";
  t[723] = "IN";
  t[724] = "IN";
  t[725] = "IN";
  t[726] = "OUT";
  t[727] = "OUT";
  t[728] = "IN";
  t[729] = "OUT";
  t[730] = "IN";
  t[731] = "OUT";
  t[732] = "OUT";
  t[733] = "OUT";
  t[734] = "IN";
  t[735] = "OUT";
  t[736] = "IN";
  t[737] = "IN";
  t[738] = "IN";
  t[739] = "IN";
  t[740] = "IN";
  t[741] = "IN";
  t[742] = "IN";
  t[743] = "IN";
  t[744] = "IN";
  t[745] = "IN";
  t[746] = "IN";
  t[747] = "IN";
  t[748] = "IN";
  t[749] = "OUT";
  t[750] = "IN";
  t[751] = "IN";
  t[752] = "IN";
  t[753] = "IN";
  t[754] = "IN";
  t[755] = "IN";
  t[756] = "IN";
  t[757] = "IN";
  t[758] = "IN";
  t[759] = "IN";
  t[760] = "IN";
  t[761] = "OUT";
  t[762] = "OUT";
  t[763] = "OUT";
  t[764] = "OUT";
  t[765] = "OUT";
  t[766] = "OUT";
  t[767] = "OUT";
  t[768] = "OUT";
  t[769] = "OUT";
  t[770] = "OUT";
  t[771] = "OUT";
  t[772] = "OUT";
  t[773] = "OUT";
  t[774] = "OUT";
  t[775] = "IN";
  t[776] = "IN";
  t[777] = "IN";
  t[778] = "IN";
  t[779] = "IN";
  t[780] = "IN";
  t[781] = "IN";
  t[782] = "IN";
  t[783] = "IN";
  t[784] = "IN";
  t[785] = "IN";
  t[786] = "IN";
  t[787] = "IN";
  t[788] = "IN";
  t[789] = "IN";
  t[790] = "OUT";
  t[791] = "OUT";
  t[792] = "IN";
  t[793] = "OUT";
  t[794] = "OUT";
  t[795] = "OUT";
  t[796] = "IN";
  t[797] = "OUT";
  t[798] = "OUT";
  t[799] = "OUT";
  t[800] = "IN";
  t[801] = "IN";
  t[802] = "OUT";
  t[803] = "IN";
  t[804] = "IN";
  t[805] = "IN";
  t[806] = "IN";
  t[807] = "IN";
  t[808] = "IN";
  t[809] = "IN";
  t[810] = "IN";
  t[811] = "IN";
  t[812] = "OUT";
  t[813] = "OUT";
  t[814] = "OUT";
  t[815] = "OUT";
  t[816] = "OUT";
  t[817] = "IN";
  t[818] = "IN";
  t[819] = "IN";
  t[820] = "IN";
  t[821] = "IN";
  t[822] = "IN";
  t[823] = "IN";
  t[824] = "IN";
  t[825] = "OUT";
  t[826] = "OUT";
  t[827] = "OUT";
  t[828] = "OUT";
  t[829] = "OUT";
  t[830] = "OUT";
  t[831] = "OUT";
  t[832] = "OUT";
  t[833] = "OUT";
  t[834] = "OUT";
  t[835] = "OUT";
  t[836] = "OUT";
  t[837] = "OUT";
  t[838] = "IN";
  t[839] = "IN";
  t[840] = "IN";
  t[841] = "IN";
  t[842] = "IN";
  t[843] = "IN";
  t[844] = "IN";
  t[845] = "IN";
  t[846] = "IN";
  t[847] = "IN";
  t[848] = "IN";
  t[849] = "IN";
  t[850] = "IN";
  t[851] = "IN";
  t[852] = "IN";
  t[853] = "IN";
  t[854] = "IN";
  t[855] = "OUT";
  t[856] = "OUT";
  t[857] = "OUT";
  t[858] = "IN";
  t[859] = "OUT";
  t[860] = "IN";
  t[861] = "OUT";
  t[862] = "IN";
  t[863] = "OUT";
  t[864] = "OUT";
  t[865] = "IN";
  t[866] = "OUT";
  t[867] = "OUT";
  t[868] = "IN";
  t[869] = "IN";
  t[870] = "IN";
  t[871] = "IN";
  t[872] = "IN";
  t[873] = "IN";
  t[874] = "IN";
  t[875] = "IN";
  t[876] = "IN";
  t[877] = "IN";
  t[878] = "IN";
  t[879] = "OUT";
  t[880] = "IN";
  t[881] = "IN";
  t[882] = "IN";
  t[883] = "IN";
  t[884] = "IN";
  t[885] = "IN";
  t[886] = "IN";
  t[887] = "IN";
  t[888] = "IN";
  t[889] = "IN";
  t[890] = "OUT";
  t[891] = "OUT";
  t[892] = "OUT";
  t[893] = "OUT";
  t[894] = "OUT";
  t[895] = "OUT";
  t[896] = "OUT";
  t[897] = "OUT";
  t[898] = "OUT";
  t[899] = "OUT";
  t[900] = "OUT";
  t[901] = "IN";
  t[902] = "IN";
  t[903] = "IN";
  t[904] = "IN";
  t[905] = "IN";
  t[906] = "IN";
  t[907] = "IN";
  t[908] = "IN";
  t[909] = "IN";
  t[910] = "IN";
  t[911] = "IN";
  t[912] = "IN";
  t[913] = "IN";
  t[914] = "IN";
  t[915] = "IN";
  t[916] = "IN";
  t[917] = "IN";
  t[918] = "OUT";
  t[919] = "OUT";
  t[920] = "IN";
  t[921] = "OUT";
  t[922] = "IN";
  t[923] = "IN";
  t[924] = "IN";
  t[925] = "OUT";
  t[926] = "IN";
  t[927] = "IN";
  t[928] = "OUT";
  t[929] = "OUT";
  t[930] = "OUT";
  t[931] = "IN";
  t[932] = "IN";
  t[933] = "IN";
  t[934] = "IN";
  t[935] = "IN";
  t[936] = "IN";
  t[937] = "IN";
  t[938] = "IN";
  t[939] = "IN";
  t[940] = "IN";
  t[941] = "OUT";
  t[942] = "OUT";
  t[943] = "OUT";
  t[944] = "OUT";
  t[945] = "IN";
  t[946] = "OUT";
  t[947] = "IN";
  t[948] = "IN";
  t[949] = "IN";
  t[950] = "IN";
  t[951] = "IN";
  t[952] = "IN";
  t[953] = "IN";
  t[954] = "IN";
  t[955] = "OUT";
  t[956] = "OUT";
  t[957] = "OUT";
  t[958] = "OUT";
  t[959] = "OUT";
  t[960] = "OUT";
  t[961] = "OUT";
  t[962] = "OUT";
  t[963] = "OUT";
  t[964] = "OUT";
  t[965] = "OUT";
  t[966] = "IN";
  t[967] = "IN";
  t[968] = "IN";
  t[969] = "IN";
  t[970] = "IN";
  t[971] = "IN";
  t[972] = "IN";
  t[973] = "IN";
  t[974] = "IN";
  t[975] = "IN";
  t[976] = "IN";
  t[977] = "IN";
  t[978] = "IN";
  t[979] = "IN";
  t[980] = "IN";
  t[981] = "IN";
  t[982] = "OUT";
  t[983] = "IN";
  t[984] = "IN";
  t[985] = "IN";
  t[986] = "IN";
  t[987] = "OUT";
  t[988] = "IN";
  t[989] = "OUT";
  t[990] = "OUT";
  t[991] = "IN";
  t[992] = "OUT";
  t[993] = "IN";
  t[994] = "OUT";
  t[995] = "OUT";
  t[996] = "IN";
  t[997] = "IN";
  t[998] = "IN";
  t[999] = "IN";
  t[1000] = "IN";
  t[1001] = "IN";
  t[1002] = "IN";
  t[1003] = "IN";
  t[1004] = "IN";
  t[1005] = "OUT";
  t[1006] = "IN";
  t[1007] = "IN";
  t[1008] = "OUT";
  t[1009] = "OUT";
  t[1010] = "OUT";
  t[1011] = "IN";
  t[1012] = "IN";
  t[1013] = "IN";
  t[1014] = "IN";
  t[1015] = "IN";
  t[1016] = "IN";
  t[1017] = "IN";
  t[1018] = "IN";
  t[1019] = "OUT";
  t[1020] = "OUT";
  t[1021] = "OUT";
  t[1022] = "OUT";
  t[1023] = "OUT";
  t[1024] = "OUT";
  t[1025] = "OUT";
  t[1026] = "OUT";
  t[1027] = "OUT";
  t[1028] = "IN";
  t[1029] = "OUT";
  t[1030] = "OUT";
  t[1031] = "IN";
  t[1032] = "IN";
  t[1033] = "IN";
  t[1034] = "IN";
  t[1035] = "IN";
  t[1036] = "IN";
  t[1037] = "IN";
  t[1038] = "IN";
  t[1039] = "IN";
  t[1040] = "IN";
  t[1041] = "IN";
  t[1042] = "IN";
  t[1043] = "IN";
  t[1044] = "IN";
  t[1045] = "OUT";
  t[1046] = "OUT";
  t[1047] = "OUT";
  t[1048] = "OUT";
  t[1049] = "OUT";
  t[1050] = "OUT";
  t[1051] = "OUT";
  t[1052] = "IN";
  t[1053] = "IN";
  t[1054] = "IN";
  t[1055] = "IN";
  t[1056] = "OUT";
  t[1057] = "IN";
  t[1058] = "IN";
  t[1059] = "OUT";
  t[1060] = "OUT";
  t[1061] = "IN";
  t[1062] = "IN";
  t[1063] = "IN";
  t[1064] = "IN";
  t[1065] = "IN";
  t[1066] = "IN";
  t[1067] = "IN";
  t[1068] = "IN";
  t[1069] = "OUT";
  t[1070] = "OUT";
  t[1071] = "IN";
  t[1072] = "IN";
  t[1073] = "IN";
  t[1074] = "OUT";
  t[1075] = "OUT";
  t[1076] = "OUT";
  t[1077] = "IN";
  t[1078] = "IN";
  t[1079] = "IN";
  t[1080] = "IN";
  t[1081] = "IN";
  t[1082] = "IN";
  t[1083] = "IN";
  t[1084] = "OUT";
  t[1085] = "OUT";
  t[1086] = "OUT";
  t[1087] = "OUT";
  t[1088] = "OUT";
  t[1089] = "OUT";
  t[1090] = "OUT";
  t[1091] = "IN";
  t[1092] = "IN";
  t[1093] = "IN";
  t[1094] = "OUT";
  t[1095] = "OUT";
  t[1096] = "IN";
  t[1097] = "IN";
  t[1098] = "IN";
  t[1099] = "IN";
  t[1100] = "IN";
  t[1101] = "IN";
  t[1102] = "IN";
  t[1103] = "IN";
  t[1104] = "IN";
  t[1105] = "IN";
  t[1106] = "IN";
  t[1107] = "IN";
  t[1108] = "IN";
  t[1109] = "OUT";
  t[1110] = "IN";
  t[1111] = "OUT";
  t[1112] = "IN";
  t[1113] = "OUT";
  t[1114] = "IN";
  t[1115] = "IN";
  t[1116] = "IN";
  t[1117] = "OUT";
  t[1118] = "IN";
  t[1119] = "OUT";
  t[1120] = "OUT";
  t[1121] = "OUT";
  t[1122] = "IN";
  t[1123] = "IN";
  t[1124] = "OUT";
  t[1125] = "IN";
  t[1126] = "OUT";
  t[1127] = "IN";
  t[1128] = "IN";
  t[1129] = "IN";
  t[1130] = "IN";
  t[1131] = "IN";
  t[1132] = "IN";
  t[1133] = "IN";
  t[1134] = "OUT";
  t[1135] = "OUT";
  t[1136] = "IN";
  t[1137] = "OUT";
  t[1138] = "OUT";
  t[1139] = "IN";
  t[1140] = "OUT";
  t[1141] = "OUT";
  t[1142] = "IN";
  t[1143] = "IN";
  t[1144] = "IN";
  t[1145] = "IN";
  t[1146] = "IN";
  t[1147] = "IN";
  t[1148] = "IN";
  t[1149] = "OUT";
  t[1150] = "OUT";
  t[1151] = "OUT";
  t[1152] = "OUT";
  t[1153] = "OUT";
  t[1154] = "OUT";
  t[1155] = "IN";
  t[1156] = "OUT";
  t[1157] = "IN";
  t[1158] = "IN";
  t[1159] = "IN";
  t[1160] = "IN";
  t[1161] = "IN";
  t[1162] = "IN";
  t[1163] = "IN";
  t[1164] = "IN";
  t[1165] = "IN";
  t[1166] = "IN";
  t[1167] = "IN";
  t[1168] = "IN";
  t[1169] = "IN";
  t[1170] = "IN";
  t[1171] = "IN";
  t[1172] = "OUT";
  t[1173] = "OUT";
  t[1174] = "IN";
  t[1175] = "IN";
  t[1176] = "IN";
  t[1177] = "OUT";
  t[1178] = "OUT";
  t[1179] = "OUT";
  t[1180] = "OUT";
  t[1181] = "OUT";
  t[1182] = "IN";
  t[1183] = "OUT";
  t[1184] = "IN";
  t[1185] = "IN";
  t[1186] = "IN";
  t[1187] = "OUT";
  t[1188] = "OUT";
  t[1189] = "OUT";
  t[1190] = "OUT";
  t[1191] = "IN";
  t[1192] = "IN";
  t[1193] = "IN";
  t[1194] = "IN";
  t[1195] = "IN";
  t[1196] = "IN";
  t[1197] = "IN";
  t[1198] = "IN";
  t[1199] = "OUT";
  t[1200] = "IN";
  t[1201] = "OUT";
  t[1202] = "IN";
  t[1203] = "IN";
  t[1204] = "IN";
  t[1205] = "OUT";
  t[1206] = "OUT";
  t[1207] = "IN";
  t[1208] = "IN";
  t[1209] = "IN";
  t[1210] = "IN";
  t[1211] = "IN";
  t[1212] = "IN";
  t[1213] = "OUT";
  t[1214] = "OUT";
  t[1215] = "OUT";
  t[1216] = "OUT";
  t[1217] = "OUT";
  t[1218] = "OUT";
  t[1219] = "IN";
  t[1220] = "OUT";
  t[1221] = "OUT";
  t[1222] = "OUT";
  t[1223] = "IN";
  t[1224] = "IN";
  t[1225] = "IN";
  t[1226] = "IN";
  t[1227] = "IN";
  t[1228] = "IN";
  t[1229] = "IN";
  t[1230] = "IN";
  t[1231] = "IN";
  t[1232] = "IN";
  t[1233] = "IN";
  t[1234] = "IN";
  t[1235] = "OUT";
  t[1236] = "OUT";
  t[1237] = "IN";
  t[1238] = "IN";
  t[1239] = "OUT";
  t[1240] = "IN";
  t[1241] = "IN";
  t[1242] = "OUT";
  t[1243] = "IN";
  t[1244] = "IN";
  t[1245] = "IN";
  t[1246] = "IN";
  t[1247] = "IN";
  t[1248] = "IN";
  t[1249] = "OUT";
  t[1250] = "IN";
  t[1251] = "OUT";
  t[1252] = "IN";
  t[1253] = "OUT";
  t[1254] = "IN";
  t[1255] = "IN";
  t[1256] = "IN";
  t[1257] = "IN";
  t[1258] = "IN";
  t[1259] = "IN";
  t[1260] = "IN";
  t[1261] = "IN";
  t[1262] = "OUT";
  t[1263] = "OUT";
  t[1264] = "IN";
  t[1265] = "IN";
  t[1266] = "IN";
  t[1267] = "OUT";
  t[1268] = "IN";
  t[1269] = "OUT";
  t[1270] = "IN";
  t[1271] = "IN";
  t[1272] = "IN";
  t[1273] = "IN";
  t[1274] = "IN";
  t[1275] = "IN";
  t[1276] = "IN";
  t[1277] = "OUT";
  t[1278] = "OUT";
  t[1279] = "OUT";
  t[1280] = "OUT";
  t[1281] = "OUT";
  t[1282] = "IN";
  t[1283] = "IN";
  t[1284] = "OUT";
  t[1285] = "IN";
  t[1286] = "OUT";
  t[1287] = "OUT";
  t[1288] = "IN";
  t[1289] = "IN";
  t[1290] = "IN";
  t[1291] = "IN";
  t[1292] = "IN";
  t[1293] = "IN";
  t[1294] = "IN";
  t[1295] = "IN";
  t[1296] = "IN";
  t[1297] = "IN";
  t[1298] = "IN";
  t[1299] = "OUT";
  t[1300] = "IN";
  t[1301] = "IN";
  t[1302] = "OUT";
  t[1303] = "OUT";
  t[1304] = "OUT";
  t[1305] = "IN";
  t[1306] = "IN";
  t[1307] = "IN";
  t[1308] = "IN";
  t[1309] = "OUT";
  t[1310] = "OUT";
  t[1311] = "OUT";
  t[1312] = "OUT";
  t[1313] = "OUT";
  t[1314] = "OUT";
  t[1315] = "OUT";
  t[1316] = "IN";
  t[1317] = "OUT";
  t[1318] = "OUT";
  t[1319] = "IN";
  t[1320] = "IN";
  t[1321] = "IN";
  t[1322] = "IN";
  t[1323] = "IN";
  t[1324] = "IN";
  t[1325] = "IN";
  t[1326] = "IN";
  t[1327] = "OUT";
  t[1328] = "OUT";
  t[1329] = "OUT";
  t[1330] = "OUT";
  t[1331] = "OUT";
  t[1332] = "IN";
  t[1333] = "IN";
  t[1334] = "IN";
  t[1335] = "IN";
  t[1336] = "IN";
  t[1337] = "IN";
  t[1338] = "IN";
  t[1339] = "IN";
  t[1340] = "IN";
  t[1341] = "IN";
  t[1342] = "OUT";
  t[1343] = "OUT";
  t[1344] = "OUT";
  t[1345] = "OUT";
  t[1346] = "IN";
  t[1347] = "OUT";
  t[1348] = "OUT";
  t[1349] = "IN";
  t[1350] = "IN";
  t[1351] = "IN";
  t[1352] = "IN";
  t[1353] = "IN";
  t[1354] = "IN";
  t[1355] = "IN";
  t[1356] = "IN";
  t[1357] = "IN";
  t[1358] = "IN";
  t[1359] = "IN";
  t[1360] = "IN";
  t[1361] = "IN";
  t[1362] = "IN";
  t[1363] = "OUT";
  t[1364] = "OUT";
  t[1365] = "OUT";
  t[1366] = "OUT";
  t[1367] = "IN";
  t[1368] = "OUT";
  t[1369] = "IN";
  t[1370] = "OUT";
  t[1371] = "OUT";
  t[1372] = "IN";
  t[1373] = "OUT";
  t[1374] = "IN";
  t[1375] = "OUT";
  t[1376] = "IN";
  t[1377] = "OUT";
  t[1378] = "IN";
  t[1379] = "IN";
  t[1380] = "IN";
  t[1381] = "IN";
  t[1382] = "OUT";
  t[1383] = "IN";
  t[1384] = "IN";
  t[1385] = "IN";
  t[1386] = "IN";
  t[1387] = "IN";
  t[1388] = "IN";
  t[1389] = "IN";
  t[1390] = "OUT";
  t[1391] = "OUT";
  t[1392] = "IN";
  t[1393] = "OUT";
  t[1394] = "IN";
  t[1395] = "OUT";
  t[1396] = "OUT";
  t[1397] = "IN";
  t[1398] = "OUT";
  t[1399] = "IN";
  t[1400] = "IN";
  t[1401] = "IN";
  t[1402] = "IN";
  t[1403] = "IN";
  t[1404] = "IN";
  t[1405] = "IN";
  t[1406] = "OUT";
  t[1407] = "OUT";
  t[1408] = "OUT";
  t[1409] = "IN";
  t[1410] = "IN";
  t[1411] = "IN";
  t[1412] = "OUT";
  t[1413] = "IN";
  t[1414] = "OUT";
  t[1415] = "IN";
  t[1416] = "OUT";
  t[1417] = "IN";
  t[1418] = "IN";
  t[1419] = "IN";
  t[1420] = "IN";
  t[1421] = "IN";
  t[1422] = "IN";
  t[1423] = "IN";
  t[1424] = "IN";
  t[1425] = "IN";
  t[1426] = "IN";
  t[1427] = "IN";
  t[1428] = "OUT";
  t[1429] = "IN";
  t[1430] = "IN";
  t[1431] = "IN";
  t[1432] = "OUT";
  t[1433] = "OUT";
  t[1434] = "OUT";
  t[1435] = "IN";
  t[1436] = "IN";
  t[1437] = "IN";
  t[1438] = "IN";
  t[1439] = "IN";
  t[1440] = "IN";
  t[1441] = "OUT";
  t[1442] = "OUT";
  t[1443] = "IN";
  t[1444] = "OUT";
  t[1445] = "OUT";
  t[1446] = "OUT";
  t[1447] = "IN";
  t[1448] = "IN";
  t[1449] = "IN";
  t[1450] = "IN";
  t[1451] = "IN";
  t[1452] = "IN";
  t[1453] = "IN";
  t[1454] = "OUT";
  t[1455] = "IN";
  t[1456] = "IN";
  t[1457] = "IN";
  t[1458] = "IN";
  t[1459] = "IN";
  t[1460] = "OUT";
  t[1461] = "IN";
  t[1462] = "OUT";
  t[1463] = "OUT";
  t[1464] = "IN";
  t[1465] = "IN";
  t[1466] = "IN";
  t[1467] = "IN";
  t[1468] = "IN";
  t[1469] = "IN";
  t[1470] = "IN";
  t[1471] = "OUT";
  t[1472] = "OUT";
  t[1473] = "OUT";
  t[1474] = "OUT";
  t[1475] = "OUT";
  t[1476] = "OUT";
  t[1477] = "IN";
  t[1478] = "OUT";
  t[1479] = "OUT";
  t[1480] = "OUT";
  t[1481] = "IN";
  t[1482] = "IN";
  t[1483] = "IN";
  t[1484] = "IN";
  t[1485] = "IN";
  t[1486] = "IN";
  t[1487] = "IN";
  t[1488] = "IN";
  t[1489] = "IN";
  t[1490] = "IN";
  t[1491] = "OUT";
  t[1492] = "OUT";
  t[1493] = "OUT";
  t[1494] = "IN";
  t[1495] = "OUT";
  t[1496] = "OUT";
  t[1497] = "IN";
  t[1498] = "IN";
  t[1499] = "IN";
  t[1500] = "OUT";
  t[1501] = "IN";
  t[1502] = "OUT";
  t[1503] = "OUT";
  t[1504] = "IN";
  t[1505] = "IN";
  t[1506] = "IN";
  t[1507] = "IN";
  t[1508] = "OUT";
  t[1509] = "IN";
  t[1510] = "OUT";
  t[1511] = "IN";
  t[1512] = "IN";
  t[1513] = "IN";
  t[1514] = "IN";
  t[1515] = "IN";
  t[1516] = "IN";
  t[1517] = "IN";
  t[1518] = "OUT";
  t[1519] = "OUT";
  t[1520] = "IN";
  t[1521] = "OUT";
  t[1522] = "OUT";
  t[1523] = "IN";
  t[1524] = "IN";
  t[1525] = "IN";
  t[1526] = "OUT";
  t[1527] = "IN";
  t[1528] = "IN";
  t[1529] = "IN";
  t[1530] = "IN";
  t[1531] = "IN";
  t[1532] = "IN";
  t[1533] = "IN";
  t[1534] = "IN";
  t[1535] = "OUT";
  t[1536] = "OUT";
  t[1537] = "IN";
  t[1538] = "IN";
  t[1539] = "IN";
  t[1540] = "IN";
  t[1541] = "IN";
  t[1542] = "OUT";
  t[1543] = "IN";
  t[1544] = "OUT";
  t[1545] = "IN";
  t[1546] = "IN";
  t[1547] = "IN";
  t[1548] = "IN";
  t[1549] = "IN";
  t[1550] = "IN";
  t[1551] = "IN";
  t[1552] = "IN";
  t[1553] = "IN";
  t[1554] = "IN";
  t[1555] = "OUT";
  t[1556] = "IN";
  t[1557] = "OUT";
  t[1558] = "IN";
  t[1559] = "IN";
  t[1560] = "OUT";
  t[1561] = "IN";
  t[1562] = "OUT";
  t[1563] = "IN";
  t[1564] = "OUT";
  t[1565] = "IN";
  t[1566] = "IN";
  t[1567] = "OUT";
  t[1568] = "OUT";
  t[1569] = "OUT";
  t[1570] = "OUT";
  t[1571] = "OUT";
  t[1572] = "OUT";
  t[1573] = "IN";
  t[1574] = "IN";
  t[1575] = "IN";
  t[1576] = "IN";
  t[1577] = "IN";
  t[1578] = "IN";
  t[1579] = "IN";
  t[1580] = "IN";
  t[1581] = "IN";
  t[1582] = "IN";
  t[1583] = "OUT";
  t[1584] = "IN";
  t[1585] = "OUT";
  t[1586] = "IN";
  t[1587] = "IN";
  t[1588] = "OUT";
  t[1589] = "OUT";
  t[1590] = "OUT";
  t[1591] = "OUT";
  t[1592] = "OUT";
  t[1593] = "IN";
  t[1594] = "IN";
  t[1595] = "IN";
  t[1596] = "IN";
  t[1597] = "IN";
  t[1598] = "IN";
  t[1599] = "OUT";
  t[1600] = "OUT";
  t[1601] = "IN";
  t[1602] = "OUT";
  t[1603] = "OUT";
  t[1604] = "OUT";
  t[1605] = "OUT";
  t[1606] = "OUT";
  t[1607] = "IN";
  t[1608] = "OUT";
  t[1609] = "IN";
  t[1610] = "IN";
  t[1611] = "IN";
  t[1612] = "IN";
  t[1613] = "IN";
  t[1614] = "IN";
  t[1615] = "IN";
  t[1616] = "IN";
  t[1617] = "IN";
  t[1618] = "IN";
  t[1619] = "IN";
  t[1620] = "IN";
  t[1621] = "OUT";
  t[1622] = "OUT";
  t[1623] = "IN";
  t[1624] = "IN";
  t[1625] = "IN";
  t[1626] = "OUT";
  t[1627] = "OUT";
  t[1628] = "OUT";
  t[1629] = "OUT";
  t[1630] = "IN";
  t[1631] = "OUT";
  t[1632] = "IN";
  t[1633] = "IN";
  t[1634] = "IN";
  t[1635] = "OUT";
  t[1636] = "IN";
  t[1637] = "IN";
  t[1638] = "IN";
  t[1639] = "IN";
  t[1640] = "IN";
  t[1641] = "IN";
  t[1642] = "IN";
  t[1643] = "IN";
  t[1644] = "IN";
  t[1645] = "IN";
  t[1646] = "IN";
  t[1647] = "OUT";
  t[1648] = "OUT";
  t[1649] = "OUT";
  t[1650] = "OUT";
  t[1651] = "IN";
  t[1652] = "IN";
  t[1653] = "OUT";
  t[1654] = "IN";
  t[1655] = "IN";
  t[1656] = "OUT";
  t[1657] = "IN";
  t[1658] = "IN";
  t[1659] = "IN";
  t[1660] = "IN";
  t[1661] = "IN";
  t[1662] = "IN";
  t[1663] = "OUT";
  t[1664] = "IN";
  t[1665] = "IN";
  t[1666] = "OUT";
  t[1667] = "IN";
  t[1668] = "IN";
  t[1669] = "IN";
  t[1670] = "OUT";
  t[1671] = "IN";
  t[1672] = "IN";
  t[1673] = "IN";
  t[1674] = "IN";
  t[1675] = "IN";
  t[1676] = "IN";
  t[1677] = "IN";
  t[1678] = "IN";
  t[1679] = "IN";
  t[1680] = "IN";
  t[1681] = "IN";
  t[1682] = "IN";
  t[1683] = "IN";
  t[1684] = "IN";
  t[1685] = "IN";
  t[1686] = "OUT";
  t[1687] = "OUT";
  t[1688] = "IN";
  t[1689] = "OUT";
  t[1690] = "OUT";
  t[1691] = "IN";
  t[1692] = "OUT";
  t[1693] = "IN";
  t[1694] = "IN";
  t[1695] = "IN";
  t[1696] = "IN";
  t[1697] = "OUT";
  t[1698] = "OUT";
  t[1699] = "OUT";
  t[1700] = "OUT";
  t[1701] = "IN";
  t[1702] = "IN";
  t[1703] = "IN";
  t[1704] = "IN";
  t[1705] = "OUT";
  t[1706] = "OUT";
  t[1707] = "IN";
  t[1708] = "IN";
  t[1709] = "IN";
  t[1710] = "OUT";
  t[1711] = "OUT";
  t[1712] = "IN";
  t[1713] = "IN";
  t[1714] = "OUT";
  t[1715] = "IN";
  t[1716] = "OUT";
  t[1717] = "OUT";
  t[1718] = "OUT";
  t[1719] = "IN";
  t[1720] = "OUT";
  t[1721] = "IN";
  t[1722] = "IN";
  t[1723] = "IN";
  t[1724] = "IN";
  t[1725] = "IN";
  t[1726] = "IN";
  t[1727] = "IN";
  t[1728] = "OUT";
  t[1729] = "OUT";
  t[1730] = "OUT";
  t[1731] = "IN";
  t[1732] = "OUT";
  t[1733] = "IN";
  t[1734] = "OUT";
  t[1735] = "OUT";
  t[1736] = "OUT";
  t[1737] = "IN";
  t[1738] = "IN";
  t[1739] = "IN";
  t[1740] = "IN";
  t[1741] = "IN";
  t[1742] = "IN";
  t[1743] = "IN";
  t[1744] = "IN";
  t[1745] = "IN";
  t[1746] = "IN";
  t[1747] = "IN";
  t[1748] = "IN";
  t[1749] = "IN";
  t[1750] = "IN";
  t[1751] = "OUT";
  t[1752] = "IN";
  t[1753] = "OUT";
  t[1754] = "IN";
  t[1755] = "IN";
  t[1756] = "IN";
  t[1757] = "IN";
  t[1758] = "OUT";
  t[1759] = "IN";
  t[1760] = "OUT";
  t[1761] = "OUT";
  t[1762] = "IN";
  t[1763] = "IN";
  t[1764] = "IN";
  t[1765] = "IN";
  t[1766] = "IN";
  t[1767] = "IN";
  t[1768] = "IN";
  t[1769] = "IN";
  t[1770] = "OUT";
  t[1771] = "IN";
  t[1772] = "IN";
  t[1773] = "IN";
  t[1774] = "IN";
  t[1775] = "OUT";
  t[1776] = "IN";
  t[1777] = "OUT";
  t[1778] = "OUT";
  t[1779] = "OUT";
  t[1780] = "OUT";
  t[1781] = "IN";
  t[1782] = "IN";
  t[1783] = "IN";
  t[1784] = "OUT";
  t[1785] = "IN";
  t[1786] = "IN";
  t[1787] = "IN";
  t[1788] = "IN";
  t[1789] = "IN";
  t[1790] = "IN";
  t[1791] = "IN";
  t[1792] = "IN";
  t[1793] = "IN";
  t[1794] = "IN";
  t[1795] = "IN";
  t[1796] = "OUT";
  t[1797] = "IN";
  t[1798] = "IN";
  t[1799] = "IN";
  t[1800] = "OUT";
  t[1801] = "IN";
  t[1802] = "IN";
  t[1803] = "IN";
  t[1804] = "IN";
  t[1805] = "IN";
  t[1806] = "IN";
  t[1807] = "IN";
  t[1808] = "IN";
  t[1809] = "IN";
  t[1810] = "IN";
  t[1811] = "IN";
  t[1812] = "IN";
  t[1813] = "IN";
  t[1814] = "IN";
  t[1815] = "OUT";
  t[1816] = "OUT";
  t[1817] = "OUT";
  t[1818] = "OUT";
  t[1819] = "IN";
  t[1820] = "OUT";
  t[1821] = "IN";
  t[1822] = "OUT";
  t[1823] = "IN";
  t[1824] = "IN";
  t[1825] = "OUT";
  t[1826] = "OUT";
  t[1827] = "IN";
  t[1828] = "IN";
  t[1829] = "IN";
  t[1830] = "IN";
  t[1831] = "IN";
  t[1832] = "OUT";
  t[1833] = "OUT";
  t[1834] = "OUT";
  t[1835] = "IN";
  t[1836] = "IN";
  t[1837] = "OUT";
  t[1838] = "OUT";
  t[1839] = "OUT";
  t[1840] = "IN";
  t[1841] = "IN";
  t[1842] = "OUT";
  t[1843] = "IN";
  t[1844] = "OUT";
  t[1845] = "IN";
  t[1846] = "OUT";
  t[1847] = "IN";
  t[1848] = "IN";
  t[1849] = "IN";
  t[1850] = "IN";
  t[1851] = "IN";
  t[1852] = "IN";
  t[1853] = "IN";
  t[1854] = "IN";
  t[1855] = "IN";
  t[1856] = "OUT";
  t[1857] = "OUT";
  t[1858] = "OUT";
  t[1859] = "IN";
  t[1860] = "OUT";
  t[1861] = "OUT";
  t[1862] = "OUT";
  t[1863] = "IN";
  t[1864] = "OUT";
  t[1865] = "OUT";
  t[1866] = "IN";
  t[1867] = "IN";
  t[1868] = "IN";
  t[1869] = "IN";
  t[1870] = "IN";
  t[1871] = "IN";
  t[1872] = "IN";
  t[1873] = "IN";
  t[1874] = "IN";
  t[1875] = "IN";
  t[1876] = "IN";
  t[1877] = "IN";
  t[1878] = "IN";
  t[1879] = "IN";
  t[1880] = "OUT";
  t[1881] = "IN";
  t[1882] = "OUT";
  t[1883] = "OUT";
  t[1884] = "OUT";
  t[1885] = "OUT";
  t[1886] = "OUT";
  t[1887] = "OUT";
  t[1888] = "IN";
  t[1889] = "OUT";
  t[1890] = "IN";
  t[1891] = "IN";
  t[1892] = "OUT";
  t[1893] = "OUT";
  t[1894] = "OUT";
  t[1895] = "IN";
  t[1896] = "IN";
  t[1897] = "OUT";
  t[1898] = "IN";
  t[1899] = "IN";
  t[1900] = "OUT";
  t[1901] = "OUT";
  t[1902] = "IN";
  t[1903] = "OUT";
  t[1904] = "OUT";
  t[1905] = "IN";
  t[1906] = "IN";
  t[1907] = "IN";
  t[1908] = "IN";
  t[1909] = "IN";
  t[1910] = "OUT";
  t[1911] = "OUT";
  t[1912] = "IN";
  t[1913] = "IN";
  t[1914] = "IN";
  t[1915] = "IN";
  t[1916] = "IN";
  t[1917] = "IN";
  t[1918] = "IN";
  t[1919] = "IN";
  t[1920] = "IN";
  t[1921] = "IN";
  t[1922] = "OUT";
  t[1923] = "IN";
  t[1924] = "OUT";
  t[1925] = "IN";
  t[1926] = "IN";
  t[1927] = "IN";
  t[1928] = "OUT";
  t[1929] = "IN";
  t[1930] = "IN";
  t[1931] = "IN";
  t[1932] = "IN";
  t[1933] = "IN";
  t[1934] = "IN";
  t[1935] = "IN";
  t[1936] = "IN";
  t[1937] = "IN";
  t[1938] = "IN";
  t[1939] = "IN";
  t[1940] = "IN";
  t[1941] = "IN";
  t[1942] = "IN";
  t[1943] = "IN";
  t[1944] = "IN";
  t[1945] = "IN";
  t[1946] = "IN";
  t[1947] = "IN";
  t[1948] = "IN";
  t[1949] = "OUT";
  t[1950] = "IN";
  t[1951] = "IN";
  t[1952] = "IN";
  t[1953] = "IN";
  t[1954] = "IN";
  t[1955] = "IN";
  t[1956] = "IN";
  t[1957] = "OUT";
  t[1958] = "IN";
  t[1959] = "IN";
  t[1960] = "OUT";
  t[1961] = "OUT";
  t[1962] = "OUT";
  t[1963] = "OUT";
  t[1964] = "OUT";
  t[1965] = "IN";
  t[1966] = "IN";
  t[1967] = "IN";
  t[1968] = "OUT";
  t[1969] = "IN";
  t[1970] = "OUT";
  t[1971] = "OUT";
  t[1972] = "IN";
  t[1973] = "OUT";
  t[1974] = "OUT";
  t[1975] = "IN";
  t[1976] = "IN";
  t[1977] = "IN";
  t[1978] = "IN";
  t[1979] = "IN";
  t[1980] = "IN";
  t[1981] = "IN";
  t[1982] = "IN";
  t[1983] = "IN";
  t[1984] = "IN";
  t[1985] = "OUT";
  t[1986] = "OUT";
  t[1987] = "OUT";
  t[1988] = "OUT";
  t[1989] = "IN";
  t[1990] = "OUT";
  t[1991] = "OUT";
  t[1992] = "OUT";
  t[1993] = "IN";
  t[1994] = "IN";
  t[1995] = "IN";
  t[1996] = "IN";
  t[1997] = "IN";
  t[1998] = "IN";
  t[1999] = "IN";
  t[2000] = "IN";
  t[2001] = "IN";
  t[2002] = "IN";
  t[2003] = "IN";
  t[2004] = "IN";
  t[2005] = "IN";
  t[2006] = "IN";
  t[2007] = "IN";
  t[2008] = "IN";
  t[2009] = "IN";
  t[2010] = "IN";
  t[2011] = "IN";
  t[2012] = "OUT";
  t[2013] = "OUT";
  t[2014] = "OUT";
  t[2015] = "OUT";
  t[2016] = "OUT";
  t[2017] = "OUT";
  t[2018] = "IN";
  t[2019] = "OUT";
  t[2020] = "IN";
  t[2021] = "OUT";
  t[2022] = "OUT";
  t[2023] = "OUT";
  t[2024] = "OUT";
  t[2025] = "IN";
  t[2026] = "OUT";
  t[2027] = "IN";
  t[2028] = "OUT";
  t[2029] = "OUT";
  t[2030] = "OUT";
  t[2031] = "IN";
  t[2032] = "IN";
  t[2033] = "IN";
  t[2034] = "OUT";
  t[2035] = "IN";
  t[2036] = "IN";
  t[2037] = "IN";
  t[2038] = "OUT";
  t[2039] = "IN";
  t[2040] = "IN";
  t[2041] = "IN";
  t[2042] = "IN";
  t[2043] = "IN";
  t[2044] = "IN";
  t[2045] = "IN";
  t[2046] = "IN";
  t[2047] = "IN";
  t[2048] = "IN";
  t[2049] = "IN";
  t[2050] = "IN";
  t[2051] = "OUT";
  t[2052] = "IN";
  t[2053] = "IN";
  t[2054] = "OUT";
  t[2055] = "IN";
  t[2056] = "IN";
  t[2057] = "IN";
  t[2058] = "IN";
  t[2059] = "IN";
  t[2060] = "IN";
  t[2061] = "IN";
  t[2062] = "IN";
  t[2063] = "IN";
  t[2064] = "IN";
  t[2065] = "IN";
  t[2066] = "IN";
  t[2067] = "IN";
  t[2068] = "IN";
  t[2069] = "IN";
  t[2070] = "IN";
  t[2071] = "IN";
  t[2072] = "IN";
  t[2073] = "IN";
  t[2074] = "IN";
  t[2075] = "IN";
  t[2076] = "IN";
  t[2077] = "IN";
  t[2078] = "IN";
  t[2079] = "OUT";
  t[2080] = "IN";
  t[2081] = "IN";
  t[2082] = "IN";
  t[2083] = "OUT";
  t[2084] = "OUT";
  t[2085] = "OUT";
  t[2086] = "IN";
  t[2087] = "OUT";
  t[2088] = "IN";
  t[2089] = "IN";
  t[2090] = "OUT";
  t[2091] = "IN";
  t[2092] = "IN";
  t[2093] = "IN";
  t[2094] = "OUT";
  t[2095] = "OUT";
  t[2096] = "IN";
  t[2097] = "OUT";
  t[2098] = "OUT";
  t[2099] = "OUT";
  t[2100] = "OUT";
  t[2101] = "IN";
  t[2102] = "OUT";
  t[2103] = "OUT";
  t[2104] = "OUT";
  t[2105] = "IN";
  t[2106] = "IN";
  t[2107] = "IN";
  t[2108] = "IN";
  t[2109] = "IN";
  t[2110] = "IN";
  t[2111] = "IN";
  t[2112] = "IN";
  t[2113] = "OUT";
  t[2114] = "IN";
  t[2115] = "OUT";
  t[2116] = "IN";
  t[2117] = "OUT";
  t[2118] = "OUT";
  t[2119] = "IN";
  t[2120] = "OUT";
  t[2121] = "IN";
  t[2122] = "IN";
  t[2123] = "IN";
  t[2124] = "IN";
  t[2125] = "IN";
  t[2126] = "IN";
  t[2127] = "IN";
  t[2128] = "IN";
  t[2129] = "IN";
  t[2130] = "IN";
  t[2131] = "IN";
  t[2132] = "IN";
  t[2133] = "IN";
  t[2134] = "IN";
  t[2135] = "IN";
  t[2136] = "IN";
  t[2137] = "IN";
  t[2138] = "IN";
  t[2139] = "IN";
  t[2140] = "OUT";
  t[2141] = "OUT";
  t[2142] = "IN";
  t[2143] = "IN";
  t[2144] = "IN";
  t[2145] = "OUT";
  t[2146] = "OUT";
  t[2147] = "OUT";
  t[2148] = "IN";
  t[2149] = "OUT";
  t[2150] = "IN";
  t[2151] = "OUT";
  t[2152] = "OUT";
  t[2153] = "IN";
  t[2154] = "IN";
  t[2155] = "IN";
  t[2156] = "IN";
  t[2157] = "IN";
  t[2158] = "IN";
  t[2159] = "OUT";
  t[2160] = "IN";
  t[2161] = "IN";
  t[2162] = "IN";
  t[2163] = "IN";
  t[2164] = "OUT";
  t[2165] = "OUT";
  t[2166] = "OUT";
  t[2167] = "IN";
  t[2168] = "OUT";
  t[2169] = "OUT";
  t[2170] = "IN";
  t[2171] = "IN";
  t[2172] = "IN";
  t[2173] = "IN";
  t[2174] = "IN";
  t[2175] = "IN";
  t[2176] = "IN";
  t[2177] = "OUT";
  t[2178] = "OUT";
  t[2179] = "OUT";
  t[2180] = "IN";
  t[2181] = "IN";
  t[2182] = "IN";
  t[2183] = "IN";
  t[2184] = "OUT";
  t[2185] = "IN";
  t[2186] = "IN";
  t[2187] = "IN";
  t[2188] = "IN";
  t[2189] = "IN";
  t[2190] = "IN";
  t[2191] = "IN";
  t[2192] = "IN";
  t[2193] = "IN";
  t[2194] = "IN";
  t[2195] = "IN";
  t[2196] = "IN";
  t[2197] = "IN";
  t[2198] = "IN";
  t[2199] = "IN";
  t[2200] = "IN";
  t[2201] = "IN";
  t[2202] = "IN";
  t[2203] = "OUT";
  t[2204] = "OUT";
  t[2205] = "IN";
  t[2206] = "IN";
  t[2207] = "IN";
  t[2208] = "OUT";
  t[2209] = "OUT";
  t[2210] = "IN";
  t[2211] = "IN";
  t[2212] = "IN";
  t[2213] = "IN";
  t[2214] = "IN";
  t[2215] = "OUT";
  t[2216] = "IN";
  t[2217] = "IN";
  t[2218] = "IN";
  t[2219] = "IN";
  t[2220] = "IN";
  t[2221] = "IN";
  t[2222] = "OUT";
  t[2223] = "OUT";
  t[2224] = "OUT";
  t[2225] = "IN";
  t[2226] = "OUT";
  t[2227] = "OUT";
  t[2228] = "OUT";
  t[2229] = "IN";
  t[2230] = "IN";
  t[2231] = "IN";
  t[2232] = "OUT";
  t[2233] = "IN";
  t[2234] = "IN";
  t[2235] = "IN";
  t[2236] = "IN";
  t[2237] = "IN";
  t[2238] = "IN";
  t[2239] = "IN";
  t[2240] = "IN";
  t[2241] = "IN";
  t[2242] = "IN";
  t[2243] = "IN";
  t[2244] = "IN";
  t[2245] = "OUT";
  t[2246] = "IN";
  t[2247] = "OUT";
  t[2248] = "OUT";
  t[2249] = "IN";
  t[2250] = "IN";
  t[2251] = "IN";
  t[2252] = "IN";
  t[2253] = "IN";
  t[2254] = "IN";
  t[2255] = "IN";
  t[2256] = "IN";
  t[2257] = "IN";
  t[2258] = "IN";
  t[2259] = "IN";
  t[2260] = "IN";
  t[2261] = "IN";
  t[2262] = "IN";
  t[2263] = "IN";
  t[2264] = "IN";
  t[2265] = "IN";
  t[2266] = "IN";
  t[2267] = "IN";
  t[2268] = "OUT";
  t[2269] = "OUT";
  t[2270] = "OUT";
  t[2271] = "IN";
  t[2272] = "OUT";
  t[2273] = "IN";
  t[2274] = "IN";
  t[2275] = "OUT";
  t[2276] = "OUT";
  t[2277] = "IN";
  t[2278] = "IN";
  t[2279] = "IN";
  t[2280] = "IN";
  t[2281] = "IN";
  t[2282] = "IN";
  t[2283] = "IN";
  t[2284] = "IN";
  t[2285] = "IN";
  t[2286] = "IN";
  t[2287] = "IN";
  t[2288] = "OUT";
  t[2289] = "IN";
  t[2290] = "IN";
  t[2291] = "OUT";
  t[2292] = "IN";
  t[2293] = "IN";
  t[2294] = "OUT";
  t[2295] = "OUT";
  t[2296] = "OUT";
  t[2297] = "IN";
  t[2298] = "IN";
  t[2299] = "IN";
  t[2300] = "IN";
  t[2301] = "IN";
  t[2302] = "IN";
  t[2303] = "IN";
  t[2304] = "OUT";
  t[2305] = "OUT";
  t[2306] = "OUT";
  t[2307] = "IN";
  t[2308] = "OUT";
  t[2309] = "OUT";
  t[2310] = "IN";
  t[2311] = "OUT";
  t[2312] = "IN";
  t[2313] = "IN";
  t[2314] = "IN";
  t[2315] = "IN";
  t[2316] = "IN";
  t[2317] = "IN";
  t[2318] = "IN";
  t[2319] = "IN";
  t[2320] = "IN";
  t[2321] = "IN";
  t[2322] = "IN";
  t[2323] = "IN";
  t[2324] = "IN";
  t[2325] = "IN";
  t[2326] = "IN";
  t[2327] = "IN";
  t[2328] = "IN";
  t[2329] = "IN";
  t[2330] = "OUT";
  t[2331] = "OUT";
  t[2332] = "OUT";
  t[2333] = "IN";
  t[2334] = "OUT";
  t[2335] = "OUT";
  t[2336] = "OUT";
  t[2337] = "OUT";
  t[2338] = "OUT";
  t[2339] = "OUT";
  t[2340] = "IN";
  t[2341] = "IN";
  t[2342] = "IN";
  t[2343] = "IN";
  t[2344] = "IN";
  t[2345] = "IN";
  t[2346] = "IN";
  t[2347] = "IN";
  t[2348] = "IN";
  t[2349] = "IN";
  t[2350] = "OUT";
  t[2351] = "IN";
  t[2352] = "OUT";
  t[2353] = "OUT";
  t[2354] = "OUT";
  t[2355] = "OUT";
  t[2356] = "OUT";
  t[2357] = "IN";
  t[2358] = "OUT";
  t[2359] = "IN";
  t[2360] = "IN";
  t[2361] = "IN";
  t[2362] = "IN";
  t[2363] = "IN";
  t[2364] = "IN";
  t[2365] = "IN";
  t[2366] = "IN";
  t[2367] = "IN";
  t[2368] = "IN";
  t[2369] = "IN";
  t[2370] = "OUT";
  t[2371] = "IN";
  t[2372] = "OUT";
  t[2373] = "IN";
  t[2374] = "IN";
  t[2375] = "OUT";
  t[2376] = "OUT";
  t[2377] = "OUT";
  t[2378] = "IN";
  t[2379] = "IN";
  t[2380] = "IN";
  t[2381] = "IN";
  t[2382] = "IN";
  t[2383] = "IN";
  t[2384] = "IN";
  t[2385] = "IN";
  t[2386] = "IN";
  t[2387] = "IN";
  t[2388] = "IN";
  t[2389] = "IN";
  t[2390] = "IN";
  t[2391] = "IN";
  t[2392] = "OUT";
  t[2393] = "OUT";
  t[2394] = "OUT";
  t[2395] = "IN";
  t[2396] = "IN";
  t[2397] = "IN";
  t[2398] = "OUT";
  t[2399] = "IN";
  t[2400] = "OUT";
  t[2401] = "IN";
  t[2402] = "IN";
  t[2403] = "IN";
  t[2404] = "IN";
  t[2405] = "IN";
  t[2406] = "IN";
  t[2407] = "IN";
  t[2408] = "IN";
  t[2409] = "IN";
  t[2410] = "IN";
  t[2411] = "IN";
  t[2412] = "IN";
  t[2413] = "IN";
  t[2414] = "OUT";
  t[2415] = "OUT";
  t[2416] = "OUT";
  t[2417] = "IN";
  t[2418] = "OUT";
  t[2419] = "IN";
  t[2420] = "IN";
  t[2421] = "IN";
  t[2422] = "OUT";
  t[2423] = "OUT";
  t[2424] = "OUT";
  t[2425] = "IN";
  t[2426] = "IN";
  t[2427] = "IN";
  t[2428] = "IN";
  t[2429] = "IN";
  t[2430] = "IN";
  t[2431] = "IN";
  t[2432] = "OUT";
  t[2433] = "IN";
  t[2434] = "OUT";
  t[2435] = "IN";
  t[2436] = "OUT";
  t[2437] = "OUT";
  t[2438] = "OUT";
  t[2439] = "OUT";
  t[2440] = "IN";
  t[2441] = "OUT";
  t[2442] = "IN";
  t[2443] = "IN";
  t[2444] = "IN";
  t[2445] = "IN";
  t[2446] = "IN";
  t[2447] = "IN";
  t[2448] = "IN";
  t[2449] = "IN";
  t[2450] = "IN";
  t[2451] = "IN";
  t[2452] = "IN";
  t[2453] = "IN";
  t[2454] = "OUT";
  t[2455] = "OUT";
  t[2456] = "OUT";
  t[2457] = "IN";
  t[2458] = "IN";
  t[2459] = "IN";
  t[2460] = "OUT";
  t[2461] = "OUT";
  t[2462] = "OUT";
  t[2463] = "IN";
  t[2464] = "OUT";
  t[2465] = "OUT";
  t[2466] = "OUT";
  t[2467] = "IN";
  t[2468] = "OUT";
  t[2469] = "IN";
  t[2470] = "IN";
  t[2471] = "IN";
  t[2472] = "IN";
  t[2473] = "IN";
  t[2474] = "IN";
  t[2475] = "IN";
  t[2476] = "IN";
  t[2477] = "IN";
  t[2478] = "IN";
  t[2479] = "OUT";
  t[2480] = "IN";
  t[2481] = "IN";
  t[2482] = "OUT";
  t[2483] = "OUT";
  t[2484] = "IN";
  t[2485] = "OUT";
  t[2486] = "OUT";
  t[2487] = "IN";
  t[2488] = "OUT";
  t[2489] = "IN";
  t[2490] = "IN";
  t[2491] = "IN";
  t[2492] = "IN";
  t[2493] = "IN";
  t[2494] = "IN";
  t[2495] = "OUT";
  t[2496] = "OUT";
  t[2497] = "IN";
  t[2498] = "OUT";
  t[2499] = "OUT";
  t[2500] = "OUT";
  t[2501] = "IN";
  t[2502] = "OUT";
  t[2503] = "IN";
  t[2504] = "IN";
  t[2505] = "IN";
  t[2506] = "IN";
  t[2507] = "IN";
  t[2508] = "IN";
  t[2509] = "IN";
  t[2510] = "IN";
  t[2511] = "IN";
  t[2512] = "IN";
  t[2513] = "IN";
  t[2514] = "IN";
  t[2515] = "OUT";
  t[2516] = "OUT";
  t[2517] = "IN";
  t[2518] = "IN";
  t[2519] = "IN";
  t[2520] = "OUT";
  t[2521] = "OUT";
  t[2522] = "OUT";
  t[2523] = "IN";
  t[2524] = "IN";
  t[2525] = "IN";
  t[2526] = "OUT";
  t[2527] = "IN";
  t[2528] = "IN";
  t[2529] = "IN";
  t[2530] = "OUT";
  t[2531] = "OUT";
  t[2532] = "OUT";
  t[2533] = "IN";
  t[2534] = "IN";
  t[2535] = "IN";
  t[2536] = "IN";
  t[2537] = "IN";
  t[2538] = "IN";
  t[2539] = "IN";
  t[2540] = "IN";
  t[2541] = "IN";
  t[2542] = "OUT";
  t[2543] = "OUT";
  t[2544] = "IN";
  t[2545] = "OUT";
  t[2546] = "OUT";
  t[2547] = "IN";
  t[2548] = "IN";
  t[2549] = "IN";
  t[2550] = "IN";
  t[2551] = "IN";
  t[2552] = "OUT";
  t[2553] = "IN";
  t[2554] = "IN";
  t[2555] = "IN";
  t[2556] = "IN";
  t[2557] = "IN";
  t[2558] = "IN";
  t[2559] = "OUT";
  t[2560] = "OUT";
  t[2561] = "IN";
  t[2562] = "IN";
  t[2563] = "IN";
  t[2564] = "IN";
  t[2565] = "IN";
  t[2566] = "IN";
  t[2567] = "IN";
  t[2568] = "OUT";
  t[2569] = "IN";
  t[2570] = "IN";
  t[2571] = "IN";
  t[2572] = "IN";
  t[2573] = "IN";
  t[2574] = "IN";
  t[2575] = "IN";
  t[2576] = "IN";
  t[2577] = "IN";
  t[2578] = "IN";
  t[2579] = "OUT";
  t[2580] = "IN";
  t[2581] = "IN";
  t[2582] = "OUT";
  t[2583] = "IN";
  t[2584] = "IN";
  t[2585] = "IN";
  t[2586] = "OUT";
  t[2587] = "OUT";
  t[2588] = "OUT";
  t[2589] = "IN";
  t[2590] = "IN";
  t[2591] = "IN";
  t[2592] = "OUT";
  t[2593] = "IN";
  t[2594] = "IN";
  t[2595] = "OUT";
  t[2596] = "IN";
  t[2597] = "IN";
  t[2598] = "IN";
  t[2599] = "IN";
  t[2600] = "IN";
  t[2601] = "IN";
  t[2602] = "IN";
  t[2603] = "IN";
  t[2604] = "IN";
  t[2605] = "IN";
  t[2606] = "IN";
  t[2607] = "OUT";
  t[2608] = "IN";
  t[2609] = "IN";
  t[2610] = "IN";
  t[2611] = "IN";
  t[2612] = "OUT";
  t[2613] = "IN";
  t[2614] = "OUT";
  t[2615] = "OUT";
  t[2616] = "OUT";
  t[2617] = "IN";
  t[2618] = "IN";
  t[2619] = "IN";
  t[2620] = "IN";
  t[2621] = "IN";
  t[2622] = "IN";
  t[2623] = "OUT";
  t[2624] = "OUT";
  t[2625] = "IN";
  t[2626] = "OUT";
  t[2627] = "OUT";
  t[2628] = "OUT";
  t[2629] = "OUT";
  t[2630] = "IN";
  t[2631] = "OUT";
  t[2632] = "OUT";
  t[2633] = "IN";
  t[2634] = "IN";
  t[2635] = "IN";
  t[2636] = "IN";
  t[2637] = "IN";
  t[2638] = "IN";
  t[2639] = "IN";
  t[2640] = "IN";
  t[2641] = "IN";
  t[2642] = "IN";
  t[2643] = "OUT";
  t[2644] = "OUT";
  t[2645] = "OUT";
  t[2646] = "OUT";
  t[2647] = "OUT";
  t[2648] = "OUT";
  t[2649] = "IN";
  t[2650] = "IN";
  t[2651] = "IN";
  t[2652] = "OUT";
  t[2653] = "OUT";
  t[2654] = "IN";
  t[2655] = "OUT";
  t[2656] = "OUT";
  t[2657] = "OUT";
  t[2658] = "OUT";
  t[2659] = "OUT";
  t[2660] = "OUT";
  t[2661] = "OUT";
  t[2662] = "IN";
  t[2663] = "IN";
  t[2664] = "IN";
  t[2665] = "IN";
  t[2666] = "IN";
  t[2667] = "IN";
  t[2668] = "IN";
  t[2669] = "IN";
  t[2670] = "IN";
  t[2671] = "OUT";
  t[2672] = "OUT";
  t[2673] = "OUT";
  t[2674] = "IN";
  t[2675] = "OUT";
  t[2676] = "OUT";
  t[2677] = "IN";
  t[2678] = "IN";
  t[2679] = "OUT";
  t[2680] = "IN";
  t[2681] = "IN";
  t[2682] = "IN";
  t[2683] = "IN";
  t[2684] = "IN";
  t[2685] = "IN";
  t[2686] = "IN";
  t[2687] = "OUT";
  t[2688] = "OUT";
  t[2689] = "OUT";
  t[2690] = "OUT";
  t[2691] = "IN";
  t[2692] = "IN";
  t[2693] = "OUT";
  t[2694] = "OUT";
  t[2695] = "OUT";
  t[2696] = "IN";
  t[2697] = "IN";
  t[2698] = "IN";
  t[2699] = "IN";
  t[2700] = "IN";
  t[2701] = "IN";
  t[2702] = "IN";
  t[2703] = "IN";
  t[2704] = "IN";
  t[2705] = "IN";
  t[2706] = "IN";
  t[2707] = "IN";
  t[2708] = "OUT";
  t[2709] = "IN";
  t[2710] = "IN";
  t[2711] = "IN";
  t[2712] = "OUT";
  t[2713] = "IN";
  t[2714] = "OUT";
  t[2715] = "IN";
  t[2716] = "IN";
  t[2717] = "IN";
  t[2718] = "IN";
  t[2719] = "OUT";
  t[2720] = "IN";
  t[2721] = "IN";
  t[2722] = "IN";
  t[2723] = "OUT";
  t[2724] = "IN";
  t[2725] = "OUT";
  t[2726] = "IN";
  t[2727] = "IN";
  t[2728] = "IN";
  t[2729] = "IN";
  t[2730] = "IN";
  t[2731] = "IN";
  t[2732] = "IN";
  t[2733] = "IN";
  t[2734] = "OUT";
  t[2735] = "OUT";
  t[2736] = "IN";
  t[2737] = "OUT";
  t[2738] = "IN";
  t[2739] = "OUT";
  t[2740] = "IN";
  t[2741] = "IN";
  t[2742] = "IN";
  t[2743] = "IN";
  t[2744] = "IN";
  t[2745] = "IN";
  t[2746] = "IN";
  t[2747] = "IN";
  t[2748] = "IN";
  t[2749] = "IN";
  t[2750] = "OUT";
  t[2751] = "OUT";
  t[2752] = "OUT";
  t[2753] = "OUT";
  t[2754] = "IN";
  t[2755] = "IN";
  t[2756] = "OUT";
  t[2757] = "OUT";
  t[2758] = "IN";
  t[2759] = "IN";
  t[2760] = "IN";
  t[2761] = "OUT";
  t[2762] = "IN";
  t[2763] = "IN";
  t[2764] = "IN";
  t[2765] = "IN";
  t[2766] = "IN";
  t[2767] = "IN";
  t[2768] = "IN";
  t[2769] = "IN";
  t[2770] = "IN";
  t[2771] = "OUT";
  t[2772] = "OUT";
  t[2773] = "IN";
  t[2774] = "OUT";
  t[2775] = "IN";
  t[2776] = "IN";
  t[2777] = "IN";
  t[2778] = "OUT";
  t[2779] = "IN";
  t[2780] = "OUT";
  t[2781] = "OUT";
  t[2782] = "IN";
  t[2783] = "IN";
  t[2784] = "IN";
  t[2785] = "OUT";
  t[2786] = "IN";
  t[2787] = "IN";
  t[2788] = "IN";
  t[2789] = "OUT";
  t[2790] = "OUT";
  t[2791] = "IN";
  t[2792] = "IN";
  t[2793] = "IN";
  t[2794] = "IN";
  t[2795] = "IN";
  t[2796] = "IN";
  t[2797] = "OUT";
  t[2798] = "OUT";
  t[2799] = "IN";
  t[2800] = "IN";
  t[2801] = "OUT";
  t[2802] = "OUT";
  t[2803] = "OUT";
  t[2804] = "OUT";
  t[2805] = "OUT";
  t[2806] = "IN";
  t[2807] = "IN";
  t[2808] = "IN";
  t[2809] = "IN";
  t[2810] = "IN";
  t[2811] = "IN";
  t[2812] = "IN";
  t[2813] = "IN";
  t[2814] = "OUT";
  t[2815] = "OUT";
  t[2816] = "OUT";
  t[2817] = "OUT";
  t[2818] = "OUT";
  t[2819] = "IN";
  t[2820] = "IN";
  t[2821] = "IN";
  t[2822] = "IN";
  t[2823] = "OUT";
  t[2824] = "OUT";
  t[2825] = "OUT";
  t[2826] = "IN";
  t[2827] = "IN";
  t[2828] = "IN";
  t[2829] = "IN";
  t[2830] = "IN";
  t[2831] = "IN";
  t[2832] = "IN";
  t[2833] = "IN";
  t[2834] = "IN";
  t[2835] = "IN";
  t[2836] = "OUT";
  t[2837] = "OUT";
  t[2838] = "OUT";
  t[2839] = "IN";
  t[2840] = "OUT";
  t[2841] = "IN";
  t[2842] = "OUT";
  t[2843] = "IN";
  t[2844] = "IN";
  t[2845] = "OUT";
  t[2846] = "OUT";
  t[2847] = "OUT";
  t[2848] = "OUT";
  t[2849] = "OUT";
  t[2850] = "IN";
  t[2851] = "OUT";
  t[2852] = "IN";
  t[2853] = "IN";
  t[2854] = "OUT";
  t[2855] = "IN";
  t[2856] = "IN";
  t[2857] = "IN";
  t[2858] = "IN";
  t[2859] = "IN";
  t[2860] = "IN";
  t[2861] = "IN";
  t[2862] = "OUT";
  t[2863] = "OUT";
  t[2864] = "IN";
  t[2865] = "OUT";
  t[2866] = "IN";
  t[2867] = "IN";
  t[2868] = "OUT";
  t[2869] = "IN";
  t[2870] = "IN";
  t[2871] = "IN";
  t[2872] = "IN";
  t[2873] = "IN";
  t[2874] = "IN";
  t[2875] = "IN";
  t[2876] = "IN";
  t[2877] = "OUT";
  t[2878] = "OUT";
  t[2879] = "OUT";
  t[2880] = "OUT";
  t[2881] = "OUT";
  t[2882] = "OUT";
  t[2883] = "OUT";
  t[2884] = "OUT";
  t[2885] = "OUT";
  t[2886] = "OUT";
  t[2887] = "OUT";
  t[2888] = "IN";
  t[2889] = "IN";
  t[2890] = "IN";
  t[2891] = "IN";
  t[2892] = "IN";
  t[2893] = "IN";
  t[2894] = "IN";
  t[2895] = "IN";
  t[2896] = "IN";
  t[2897] = "IN";
  t[2898] = "IN";
  t[2899] = "OUT";
  t[2900] = "OUT";
  t[2901] = "IN";
  t[2902] = "OUT";
  t[2903] = "IN";
  t[2904] = "OUT";
  t[2905] = "OUT";
  t[2906] = "OUT";
  t[2907] = "OUT";
  t[2908] = "IN";
  t[2909] = "IN";
  t[2910] = "IN";
  t[2911] = "IN";
  t[2912] = "IN";
  t[2913] = "OUT";
  t[2914] = "OUT";
  t[2915] = "OUT";
  t[2916] = "OUT";
  t[2917] = "OUT";
  t[2918] = "OUT";
  t[2919] = "IN";
  t[2920] = "IN";
  t[2921] = "IN";
  t[2922] = "IN";
  t[2923] = "IN";
  t[2924] = "IN";
  t[2925] = "IN";
  t[2926] = "IN";
  t[2927] = "IN";
  t[2928] = "IN";
  t[2929] = "OUT";
  t[2930] = "OUT";
  t[2931] = "IN";
  t[2932] = "OUT";
  t[2933] = "IN";
  t[2934] = "IN";
  t[2935] = "IN";
  t[2936] = "IN";
  t[2937] = "IN";
  t[2938] = "IN";
  t[2939] = "IN";
  t[2940] = "IN";
  t[2941] = "OUT";
  t[2942] = "OUT";
  t[2943] = "OUT";
  t[2944] = "OUT";
  t[2945] = "OUT";
  t[2946] = "OUT";
  t[2947] = "IN";
  t[2948] = "IN";
  t[2949] = "OUT";
  t[2950] = "IN";
  t[2951] = "IN";
  t[2952] = "IN";
  t[2953] = "IN";
  t[2954] = "IN";
  t[2955] = "IN";
  t[2956] = "IN";
  t[2957] = "IN";
  t[2958] = "IN";
  t[2959] = "IN";
  t[2960] = "IN";
  t[2961] = "IN";
  t[2962] = "IN";
  t[2963] = "IN";
  t[2964] = "OUT";
  t[2965] = "IN";
  t[2966] = "IN";
  t[2967] = "IN";
  t[2968] = "OUT";
  t[2969] = "IN";
  t[2970] = "IN";
  t[2971] = "OUT";
  t[2972] = "IN";
  t[2973] = "OUT";
  t[2974] = "OUT";
  t[2975] = "IN";
  t[2976] = "IN";
  t[2977] = "IN";
  t[2978] = "OUT";
  t[2979] = "IN";
  t[2980] = "IN";
  t[2981] = "OUT";
  t[2982] = "IN";
  t[2983] = "IN";
  t[2984] = "IN";
  t[2985] = "IN";
  t[2986] = "IN";
  t[2987] = "IN";
  t[2988] = "IN";
  t[2989] = "IN";
  t[2990] = "IN";
  t[2991] = "OUT";
  t[2992] = "IN";
  t[2993] = "IN";
  t[2994] = "OUT";
  t[2995] = "IN";
  t[2996] = "IN";
  t[2997] = "IN";
  t[2998] = "IN";
  t[2999] = "IN";
  t[3000] = "IN";
  t[3001] = "IN";
  t[3002] = "IN";
  t[3003] = "IN";
  t[3004] = "IN";
  t[3005] = "OUT";
  t[3006] = "OUT";
  t[3007] = "OUT";
  t[3008] = "OUT";
  t[3009] = "OUT";
  t[3010] = "OUT";
  t[3011] = "OUT";
  t[3012] = "IN";
  t[3013] = "IN";
  t[3014] = "IN";
  t[3015] = "OUT";
  t[3016] = "OUT";
  t[3017] = "IN";
  t[3018] = "IN";
  t[3019] = "IN";
  t[3020] = "IN";
  t[3021] = "IN";
  t[3022] = "IN";
  t[3023] = "IN";
  t[3024] = "IN";
  t[3025] = "IN";
  t[3026] = "IN";
  t[3027] = "IN";
  t[3028] = "OUT";
  t[3029] = "OUT";
  t[3030] = "IN";
  t[3031] = "OUT";
  t[3032] = "OUT";
  t[3033] = "OUT";
  t[3034] = "IN";
  t[3035] = "IN";
  t[3036] = "IN";
  t[3037] = "OUT";
  t[3038] = "IN";
  t[3039] = "IN";
  t[3040] = "OUT";
  t[3041] = "IN";
  t[3042] = "IN";
  t[3043] = "IN";
  t[3044] = "OUT";
  t[3045] = "OUT";
  t[3046] = "OUT";
  t[3047] = "IN";
  t[3048] = "IN";
  t[3049] = "IN";
  t[3050] = "IN";
  t[3051] = "IN";
  t[3052] = "IN";
  t[3053] = "IN";
  t[3054] = "OUT";
  t[3055] = "OUT";
  t[3056] = "OUT";
  t[3057] = "OUT";
  t[3058] = "OUT";
  t[3059] = "IN";
  t[3060] = "IN";
  t[3061] = "IN";
  t[3062] = "IN";
  t[3063] = "IN";
  t[3064] = "IN";
  t[3065] = "IN";
  t[3066] = "IN";
  t[3067] = "IN";
  t[3068] = "OUT";
  t[3069] = "OUT";
  t[3070] = "OUT";
  t[3071] = "OUT";
  t[3072] = "OUT";
  t[3073] = "OUT";
  t[3074] = "OUT";
  t[3075] = "OUT";
  t[3076] = "OUT";
  t[3077] = "OUT";
  t[3078] = "OUT";
  t[3079] = "OUT";
  t[3080] = "IN";
  t[3081] = "IN";
  t[3082] = "IN";
  t[3083] = "IN";
  t[3084] = "IN";
  t[3085] = "IN";
  t[3086] = "IN";
  t[3087] = "IN";
  t[3088] = "IN";
  t[3089] = "IN";
  t[3090] = "IN";
  t[3091] = "IN";
  t[3092] = "IN";
  t[3093] = "OUT";
  t[3094] = "OUT";
  t[3095] = "OUT";
  t[3096] = "IN";
  t[3097] = "OUT";
  t[3098] = "OUT";
  t[3099] = "IN";
  t[3100] = "OUT";
  t[3101] = "OUT";
  t[3102] = "IN";
  t[3103] = "OUT";
  t[3104] = "OUT";
  t[3105] = "OUT";
  t[3106] = "IN";
  t[3107] = "OUT";
  t[3108] = "OUT";
  t[3109] = "IN";
  t[3110] = "OUT";
  t[3111] = "IN";
  t[3112] = "IN";
  t[3113] = "IN";
  t[3114] = "IN";
  t[3115] = "IN";
  t[3116] = "IN";
  t[3117] = "IN";
  t[3118] = "OUT";
  t[3119] = "IN";
  t[3120] = "IN";
  t[3121] = "OUT";
  t[3122] = "IN";
  t[3123] = "IN";
  t[3124] = "IN";
  t[3125] = "IN";
  t[3126] = "IN";
  t[3127] = "IN";
  t[3128] = "IN";
  t[3129] = "IN";
  t[3130] = "IN";
  t[3131] = "OUT";
  t[3132] = "OUT";
  t[3133] = "OUT";
  t[3134] = "OUT";
  t[3135] = "OUT";
  t[3136] = "OUT";
  t[3137] = "OUT";
  t[3138] = "OUT";
  t[3139] = "OUT";
  t[3140] = "OUT";
  t[3141] = "IN";
  t[3142] = "IN";
  t[3143] = "OUT";
  t[3144] = "OUT";
  t[3145] = "IN";
  t[3146] = "IN";
  t[3147] = "IN";
  t[3148] = "IN";
  t[3149] = "IN";
  t[3150] = "IN";
  t[3151] = "IN";
  t[3152] = "IN";
  t[3153] = "IN";
  t[3154] = "IN";
  t[3155] = "IN";
  t[3156] = "IN";
  t[3157] = "IN";
  t[3158] = "OUT";
  t[3159] = "IN";
  t[3160] = "IN";
  t[3161] = "OUT";
  t[3162] = "IN";
  t[3163] = "IN";
  t[3164] = "OUT";
  t[3165] = "IN";
  t[3166] = "IN";
  t[3167] = "OUT";
  t[3168] = "IN";
  t[3169] = "IN";
  t[3170] = "IN";
  t[3171] = "OUT";
  t[3172] = "IN";
  t[3173] = "IN";
  t[3174] = "IN";
  t[3175] = "IN";
  t[3176] = "IN";
  t[3177] = "IN";
  t[3178] = "IN";
  t[3179] = "IN";
  t[3180] = "IN";
  t[3181] = "OUT";
  t[3182] = "OUT";
  t[3183] = "IN";
  t[3184] = "OUT";
  t[3185] = "OUT";
  t[3186] = "IN";
  t[3187] = "IN";
  t[3188] = "IN";
  t[3189] = "IN";
  t[3190] = "IN";
  t[3191] = "IN";
  t[3192] = "IN";
  t[3193] = "IN";
  t[3194] = "IN";
  t[3195] = "OUT";
  t[3196] = "OUT";
  t[3197] = "OUT";
  t[3198] = "OUT";
  t[3199] = "OUT";
  t[3200] = "OUT";
  t[3201] = "OUT";
  t[3202] = "OUT";
  t[3203] = "OUT";
  t[3204] = "OUT";
  t[3205] = "OUT";
  t[3206] = "IN";
  t[3207] = "IN";
  t[3208] = "OUT";
  t[3209] = "IN";
  t[3210] = "IN";
  t[3211] = "IN";
  t[3212] = "IN";
  t[3213] = "IN";
  t[3214] = "IN";
  t[3215] = "IN";
  t[3216] = "IN";
  t[3217] = "IN";
  t[3218] = "IN";
  t[3219] = "IN";
  t[3220] = "IN";
  t[3221] = "OUT";
  t[3222] = "OUT";
  t[3223] = "OUT";
  t[3224] = "IN";
  t[3225] = "IN";
  t[3226] = "IN";
  t[3227] = "OUT";
  t[3228] = "OUT";
  t[3229] = "OUT";
  t[3230] = "IN";
  t[3231] = "OUT";
  t[3232] = "OUT";
  t[3233] = "IN";
  t[3234] = "OUT";
  t[3235] = "OUT";
  t[3236] = "OUT";
  t[3237] = "IN";
  t[3238] = "IN";
  t[3239] = "IN";
  t[3240] = "IN";
  t[3241] = "IN";
  t[3242] = "IN";
  t[3243] = "IN";
  t[3244] = "IN";
  t[3245] = "IN";
  t[3246] = "OUT";
  t[3247] = "IN";
  t[3248] = "IN";
  t[3249] = "IN";
  t[3250] = "IN";
  t[3251] = "IN";
  t[3252] = "IN";
  t[3253] = "IN";
  t[3254] = "IN";
  t[3255] = "IN";
  t[3256] = "IN";
  t[3257] = "IN";
  t[3258] = "OUT";
  t[3259] = "OUT";
  t[3260] = "OUT";
  t[3261] = "OUT";
  t[3262] = "OUT";
  t[3263] = "OUT";
  t[3264] = "OUT";
  t[3265] = "OUT";
  t[3266] = "OUT";
  t[3267] = "OUT";
  t[3268] = "OUT";
  t[3269] = "OUT";
  t[3270] = "OUT";
  t[3271] = "IN";
  t[3272] = "IN";
  t[3273] = "IN";
  t[3274] = "IN";
  t[3275] = "IN";
  t[3276] = "IN";
  t[3277] = "IN";
  t[3278] = "IN";
  t[3279] = "IN";
  t[3280] = "IN";
  t[3281] = "IN";
  t[3282] = "IN";
  t[3283] = "IN";
  t[3284] = "IN";
  t[3285] = "IN";
  t[3286] = "OUT";
  t[3287] = "OUT";
  t[3288] = "OUT";
  t[3289] = "OUT";
  t[3290] = "IN";
  t[3291] = "OUT";
  t[3292] = "IN";
  t[3293] = "OUT";
  t[3294] = "IN";
  t[3295] = "IN";
  t[3296] = "OUT";
  t[3297] = "OUT";
  t[3298] = "OUT";
  t[3299] = "IN";
  t[3300] = "OUT";
  t[3301] = "IN";
  t[3302] = "IN";
  t[3303] = "IN";
  t[3304] = "IN";
  t[3305] = "IN";
  t[3306] = "IN";
  t[3307] = "IN";
  t[3308] = "IN";
  t[3309] = "OUT";
  t[3310] = "OUT";
  t[3311] = "OUT";
  t[3312] = "IN";
  t[3313] = "IN";
  t[3314] = "IN";
  t[3315] = "IN";
  t[3316] = "IN";
  t[3317] = "IN";
  t[3318] = "IN";
  t[3319] = "IN";
  t[3320] = "IN";
  t[3321] = "OUT";
  t[3322] = "OUT";
  t[3323] = "OUT";
  t[3324] = "OUT";
  t[3325] = "OUT";
  t[3326] = "OUT";
  t[3327] = "OUT";
  t[3328] = "OUT";
  t[3329] = "OUT";
  t[3330] = "OUT";
  t[3331] = "OUT";
  t[3332] = "OUT";
  t[3333] = "OUT";
  t[3334] = "OUT";
  t[3335] = "IN";
  t[3336] = "IN";
  t[3337] = "IN";
  t[3338] = "IN";
  t[3339] = "IN";
  t[3340] = "IN";
  t[3341] = "IN";
  t[3342] = "IN";
  t[3343] = "IN";
  t[3344] = "IN";
  t[3345] = "IN";
  t[3346] = "IN";
  t[3347] = "IN";
  t[3348] = "IN";
  t[3349] = "IN";
  t[3350] = "OUT";
  t[3351] = "OUT";
  t[3352] = "IN";
  t[3353] = "OUT";
  t[3354] = "OUT";
  t[3355] = "OUT";
  t[3356] = "IN";
  t[3357] = "IN";
  t[3358] = "IN";
  t[3359] = "OUT";
  t[3360] = "OUT";
  t[3361] = "IN";
  t[3362] = "OUT";
  t[3363] = "IN";
  t[3364] = "IN";
  t[3365] = "IN";
  t[3366] = "IN";
  t[3367] = "IN";
  t[3368] = "IN";
  t[3369] = "IN";
  t[3370] = "IN";
  t[3371] = "IN";
  t[3372] = "IN";
  t[3373] = "OUT";
  t[3374] = "IN";
  t[3375] = "IN";
  t[3376] = "IN";
  t[3377] = "IN";
  t[3378] = "IN";
  t[3379] = "IN";
  t[3380] = "IN";
  t[3381] = "IN";
  t[3382] = "IN";
  t[3383] = "IN";
  t[3384] = "IN";
  t[3385] = "OUT";
  t[3386] = "OUT";
  t[3387] = "OUT";
  t[3388] = "OUT";
  t[3389] = "OUT";
  t[3390] = "OUT";
  t[3391] = "OUT";
  t[3392] = "OUT";
  t[3393] = "OUT";
  t[3394] = "OUT";
  t[3395] = "OUT";
  t[3396] = "OUT";
  t[3397] = "OUT";
  t[3398] = "OUT";
  t[3399] = "OUT";
  t[3400] = "IN";
  t[3401] = "IN";
  t[3402] = "IN";
  t[3403] = "IN";
  t[3404] = "IN";
  t[3405] = "IN";
  t[3406] = "IN";
  t[3407] = "IN";
  t[3408] = "IN";
  t[3409] = "IN";
  t[3410] = "IN";
  t[3411] = "IN";
  t[3412] = "IN";
  t[3413] = "OUT";
  t[3414] = "OUT";
  t[3415] = "OUT";
  t[3416] = "IN";
  t[3417] = "IN";
  t[3418] = "OUT";
  t[3419] = "IN";
  t[3420] = "IN";
  t[3421] = "OUT";
  t[3422] = "OUT";
  t[3423] = "OUT";
  t[3424] = "IN";
  t[3425] = "IN";
  t[3426] = "IN";
  t[3427] = "IN";
  t[3428] = "IN";
  t[3429] = "IN";
  t[3430] = "IN";
  t[3431] = "IN";
  t[3432] = "IN";
  t[3433] = "IN";
  t[3434] = "IN";
  t[3435] = "IN";
  t[3436] = "OUT";
  t[3437] = "OUT";
  t[3438] = "OUT";
  t[3439] = "IN";
  t[3440] = "IN";
  t[3441] = "IN";
  t[3442] = "IN";
  t[3443] = "IN";
  t[3444] = "IN";
  t[3445] = "IN";
  t[3446] = "IN";
  t[3447] = "IN";
  t[3448] = "OUT";
  t[3449] = "OUT";
  t[3450] = "OUT";
  t[3451] = "OUT";
  t[3452] = "OUT";
  t[3453] = "OUT";
  t[3454] = "OUT";
  t[3455] = "OUT";
  t[3456] = "OUT";
  t[3457] = "OUT";
  t[3458] = "OUT";
  t[3459] = "OUT";
  t[3460] = "OUT";
  t[3461] = "OUT";
  t[3462] = "OUT";
  t[3463] = "OUT";
  t[3464] = "OUT";
  t[3465] = "IN";
  t[3466] = "IN";
  t[3467] = "IN";
  t[3468] = "IN";
  t[3469] = "IN";
  t[3470] = "IN";
  t[3471] = "IN";
  t[3472] = "IN";
  t[3473] = "IN";
  t[3474] = "IN";
  t[3475] = "IN";
  t[3476] = "IN";
  t[3477] = "OUT";
  t[3478] = "OUT";
  t[3479] = "IN";
  t[3480] = "IN";
  t[3481] = "OUT";
  t[3482] = "OUT";
  t[3483] = "OUT";
  t[3484] = "OUT";
  t[3485] = "OUT";
  t[3486] = "IN";
  t[3487] = "OUT";
  t[3488] = "OUT";
  t[3489] = "IN";
  t[3490] = "IN";
  t[3491] = "IN";
  t[3492] = "IN";
  t[3493] = "IN";
  t[3494] = "IN";
  t[3495] = "IN";
  t[3496] = "IN";
  t[3497] = "IN";
  t[3498] = "IN";
  t[3499] = "IN";
  t[3500] = "IN";
  t[3501] = "OUT";
  t[3502] = "IN";
  t[3503] = "IN";
  t[3504] = "IN";
  t[3505] = "IN";
  t[3506] = "IN";
  t[3507] = "IN";
  t[3508] = "IN";
  t[3509] = "IN";
  t[3510] = "IN";
  t[3511] = "OUT";
  t[3512] = "OUT";
  t[3513] = "OUT";
  t[3514] = "OUT";
  t[3515] = "OUT";
  t[3516] = "OUT";
  t[3517] = "OUT";
  t[3518] = "OUT";
  t[3519] = "OUT";
  t[3520] = "OUT";
  t[3521] = "OUT";
  t[3522] = "OUT";
  t[3523] = "OUT";
  t[3524] = "OUT";
  t[3525] = "OUT";
  t[3526] = "OUT";
  t[3527] = "OUT";
  t[3528] = "OUT";
  t[3529] = "OUT";
  t[3530] = "IN";
  t[3531] = "IN";
  t[3532] = "IN";
  t[3533] = "IN";
  t[3534] = "IN";
  t[3535] = "IN";
  t[3536] = "IN";
  t[3537] = "IN";
  t[3538] = "IN";
  t[3539] = "IN";
  t[3540] = "IN";
  t[3541] = "OUT";
  t[3542] = "OUT";
  t[3543] = "IN";
  t[3544] = "IN";
  t[3545] = "IN";
  t[3546] = "IN";
  t[3547] = "IN";
  t[3548] = "IN";
  t[3549] = "IN";
  t[3550] = "IN";
  t[3551] = "IN";
  t[3552] = "IN";
  t[3553] = "IN";
  t[3554] = "IN";
  t[3555] = "IN";
  t[3556] = "IN";
  t[3557] = "IN";
  t[3558] = "IN";
  t[3559] = "IN";
  t[3560] = "IN";
  t[3561] = "IN";
  t[3562] = "IN";
  t[3563] = "IN";
  t[3564] = "IN";
  t[3565] = "IN";
  t[3566] = "IN";
  t[3567] = "IN";
  t[3568] = "IN";
  t[3569] = "IN";
  t[3570] = "IN";
  t[3571] = "IN";
  t[3572] = "IN";
  t[3573] = "IN";
  t[3574] = "OUT";
  t[3575] = "OUT";
  t[3576] = "OUT";
  t[3577] = "OUT";
  t[3578] = "OUT";
  t[3579] = "OUT";
  t[3580] = "OUT";
  t[3581] = "OUT";
  t[3582] = "OUT";
  t[3583] = "OUT";
  t[3584] = "OUT";
  t[3585] = "OUT";
  t[3586] = "OUT";
  t[3587] = "OUT";
  t[3588] = "OUT";
  t[3589] = "OUT";
  t[3590] = "OUT";
  t[3591] = "OUT";
  t[3592] = "OUT";
  t[3593] = "OUT";
  t[3594] = "OUT";
  t[3595] = "IN";
  t[3596] = "IN";
  t[3597] = "IN";
  t[3598] = "IN";
  t[3599] = "IN";
  t[3600] = "IN";
  t[3601] = "IN";
  t[3602] = "IN";
  t[3603] = "IN";
  t[3604] = "OUT";
  t[3605] = "OUT";
  t[3606] = "OUT";
  t[3607] = "IN";
  t[3608] = "IN";
  t[3609] = "IN";
  t[3610] = "IN";
  t[3611] = "IN";
  t[3612] = "IN";
  t[3613] = "IN";
  t[3614] = "IN";
  t[3615] = "IN";
  t[3616] = "IN";
  t[3617] = "IN";
  t[3618] = "IN";
  t[3619] = "IN";
  t[3620] = "IN";
  t[3621] = "IN";
  t[3622] = "IN";
  t[3623] = "IN";
  t[3624] = "IN";
  t[3625] = "IN";
  t[3626] = "IN";
  t[3627] = "IN";
  t[3628] = "IN";
  t[3629] = "IN";
  t[3630] = "IN";
  t[3631] = "IN";
  t[3632] = "IN";
  t[3633] = "IN";
  t[3634] = "IN";
  t[3635] = "IN";
  t[3636] = "IN";
  t[3637] = "OUT";
  t[3638] = "OUT";
  t[3639] = "OUT";
  t[3640] = "OUT";
  t[3641] = "OUT";
  t[3642] = "OUT";
  t[3643] = "OUT";
  t[3644] = "OUT";
  t[3645] = "OUT";
  t[3646] = "OUT";
  t[3647] = "OUT";
  t[3648] = "OUT";
  t[3649] = "OUT";
  t[3650] = "OUT";
  t[3651] = "OUT";
  t[3652] = "OUT";
  t[3653] = "OUT";
  t[3654] = "OUT";
  t[3655] = "OUT";
  t[3656] = "OUT";
  t[3657] = "OUT";
  t[3658] = "OUT";
  t[3659] = "OUT";
  t[3660] = "OUT";
  t[3661] = "IN";
  t[3662] = "IN";
  t[3663] = "IN";
  t[3664] = "IN";
  t[3665] = "IN";
  t[3666] = "IN";
  t[3667] = "IN";
  t[3668] = "OUT";
  t[3669] = "OUT";
  t[3670] = "IN";
  t[3671] = "IN";
  t[3672] = "IN";
  t[3673] = "IN";
  t[3674] = "IN";
  t[3675] = "IN";
  t[3676] = "IN";
  t[3677] = "IN";
  t[3678] = "IN";
  t[3679] = "IN";
  t[3680] = "IN";
  t[3681] = "IN";
  t[3682] = "IN";
  t[3683] = "IN";
  t[3684] = "IN";
  t[3685] = "IN";
  t[3686] = "IN";
  t[3687] = "IN";
  t[3688] = "IN";
  t[3689] = "IN";
  t[3690] = "IN";
  t[3691] = "IN";
  t[3692] = "IN";
  t[3693] = "IN";
  t[3694] = "IN";
  t[3695] = "IN";
  t[3696] = "IN";
  t[3697] = "IN";
  t[3698] = "IN";
  t[3699] = "OUT";
  t[3700] = "OUT";
  t[3701] = "OUT";
  t[3702] = "OUT";
  t[3703] = "OUT";
  t[3704] = "OUT";
  t[3705] = "OUT";
  t[3706] = "OUT";
  t[3707] = "OUT";
  t[3708] = "OUT";
  t[3709] = "OUT";
  t[3710] = "OUT";
  t[3711] = "OUT";
  t[3712] = "OUT";
  t[3713] = "OUT";
  t[3714] = "OUT";
  t[3715] = "OUT";
  t[3716] = "OUT";
  t[3717] = "OUT";
  t[3718] = "OUT";
  t[3719] = "OUT";
  t[3720] = "OUT";
  t[3721] = "OUT";
  t[3722] = "OUT";
  t[3723] = "OUT";
  t[3724] = "OUT";
  t[3725] = "OUT";
  t[3726] = "IN";
  t[3727] = "IN";
  t[3728] = "IN";
  t[3729] = "IN";
  t[3730] = "IN";
  t[3731] = "IN";
  t[3732] = "OUT";
  t[3733] = "OUT";
  t[3734] = "IN";
  t[3735] = "IN";
  t[3736] = "IN";
  t[3737] = "IN";
  t[3738] = "IN";
  t[3739] = "IN";
  t[3740] = "IN";
  t[3741] = "IN";
  t[3742] = "IN";
  t[3743] = "IN";
  t[3744] = "IN";
  t[3745] = "IN";
  t[3746] = "IN";
  t[3747] = "IN";
  t[3748] = "IN";
  t[3749] = "IN";
  t[3750] = "IN";
  t[3751] = "IN";
  t[3752] = "IN";
  t[3753] = "IN";
  t[3754] = "IN";
  t[3755] = "IN";
  t[3756] = "IN";
  t[3757] = "IN";
  t[3758] = "IN";
  t[3759] = "IN";
  t[3760] = "IN";
  t[3761] = "IN";
  t[3762] = "OUT";
  t[3763] = "OUT";
  t[3764] = "OUT";
  t[3765] = "OUT";
  t[3766] = "OUT";
  t[3767] = "OUT";
  t[3768] = "OUT";
  t[3769] = "OUT";
  t[3770] = "OUT";
  t[3771] = "OUT";
  t[3772] = "OUT";
  t[3773] = "OUT";
  t[3774] = "OUT";
  t[3775] = "OUT";
  t[3776] = "OUT";
  t[3777] = "OUT";
  t[3778] = "OUT";
  t[3779] = "OUT";
  t[3780] = "OUT";
  t[3781] = "OUT";
  t[3782] = "OUT";
  t[3783] = "OUT";
  t[3784] = "OUT";
  t[3785] = "OUT";
  t[3786] = "OUT";
  t[3787] = "OUT";
  t[3788] = "OUT";
  t[3789] = "OUT";
  t[3790] = "OUT";
  t[3791] = "OUT";
  t[3792] = "IN";
  t[3793] = "IN";
  t[3794] = "IN";
  t[3795] = "OUT";
  t[3796] = "OUT";
  t[3797] = "OUT";
  t[3798] = "IN";
  t[3799] = "IN";
  t[3800] = "IN";
  t[3801] = "IN";
  t[3802] = "IN";
  t[3803] = "IN";
  t[3804] = "IN";
  t[3805] = "IN";
  t[3806] = "IN";
  t[3807] = "IN";
  t[3808] = "IN";
  t[3809] = "IN";
  t[3810] = "IN";
  t[3811] = "IN";
  t[3812] = "IN";
  t[3813] = "IN";
  t[3814] = "IN";
  t[3815] = "IN";
  t[3816] = "IN";
  t[3817] = "IN";
  t[3818] = "IN";
  t[3819] = "IN";
  t[3820] = "IN";
  t[3821] = "IN";
  t[3822] = "IN";
  t[3823] = "IN";
  t[3824] = "OUT";
  t[3825] = "OUT";
  t[3826] = "OUT";
  t[3827] = "OUT";
  t[3828] = "OUT";
  t[3829] = "OUT";
  t[3830] = "OUT";
  t[3831] = "OUT";
  t[3832] = "OUT";
  t[3833] = "OUT";
  t[3834] = "OUT";
  t[3835] = "OUT";
  t[3836] = "OUT";
  t[3837] = "OUT";
  t[3838] = "OUT";
  t[3839] = "OUT";
  t[3840] = "OUT";
  t[3841] = "OUT";
  t[3842] = "OUT";
  t[3843] = "OUT";
  t[3844] = "OUT";
  t[3845] = "OUT";
  t[3846] = "OUT";
  t[3847] = "OUT";
  t[3848] = "OUT";
  t[3849] = "OUT";
  t[3850] = "OUT";
  t[3851] = "OUT";
  t[3852] = "OUT";
  t[3853] = "OUT";
  t[3854] = "OUT";
  t[3855] = "OUT";
  t[3856] = "OUT";
  t[3857] = "IN";
  t[3858] = "IN";
  t[3859] = "OUT";
  t[3860] = "OUT";
  t[3861] = "IN";
  t[3862] = "IN";
  t[3863] = "IN";
  t[3864] = "IN";
  t[3865] = "IN";
  t[3866] = "IN";
  t[3867] = "IN";
  t[3868] = "IN";
  t[3869] = "IN";
  t[3870] = "IN";
  t[3871] = "IN";
  t[3872] = "IN";
  t[3873] = "IN";
  t[3874] = "IN";
  t[3875] = "IN";
  t[3876] = "IN";
  t[3877] = "IN";
  t[3878] = "IN";
  t[3879] = "IN";
  t[3880] = "IN";
  t[3881] = "IN";
  t[3882] = "IN";
  t[3883] = "IN";
  t[3884] = "IN";
  t[3885] = "IN";
  t[3886] = "IN";
  t[3887] = "OUT";
  t[3888] = "OUT";
  t[3889] = "OUT";
  t[3890] = "OUT";
  t[3891] = "OUT";
  t[3892] = "OUT";
  t[3893] = "OUT";
  t[3894] = "OUT";
  t[3895] = "OUT";
  t[3896] = "OUT";
  t[3897] = "OUT";
  t[3898] = "OUT";
  t[3899] = "OUT";
  t[3900] = "OUT";
  t[3901] = "OUT";
  t[3902] = "OUT";
  t[3903] = "OUT";
  t[3904] = "OUT";
  t[3905] = "OUT";
  t[3906] = "OUT";
  t[3907] = "OUT";
  t[3908] = "OUT";
  t[3909] = "OUT";
  t[3910] = "OUT";
  t[3911] = "OUT";
  t[3912] = "OUT";
  t[3913] = "OUT";
  t[3914] = "OUT";
  t[3915] = "OUT";
  t[3916] = "OUT";
  t[3917] = "OUT";
  t[3918] = "OUT";
  t[3919] = "OUT";
  t[3920] = "OUT";
  t[3921] = "OUT";
  t[3922] = "OUT";
  t[3923] = "OUT";
  t[3924] = "OUT";
  t[3925] = "IN";
  t[3926] = "IN";
  t[3927] = "IN";
  t[3928] = "IN";
  t[3929] = "IN";
  t[3930] = "IN";
  t[3931] = "IN";
  t[3932] = "IN";
  t[3933] = "IN";
  t[3934] = "IN";
  t[3935] = "IN";
  t[3936] = "IN";
  t[3937] = "IN";
  t[3938] = "IN";
  t[3939] = "IN";
  t[3940] = "IN";
  t[3941] = "IN";
  t[3942] = "IN";
  t[3943] = "IN";
  t[3944] = "IN";
  t[3945] = "IN";
  t[3946] = "IN";
  t[3947] = "IN";
  t[3948] = "OUT";
  t[3949] = "OUT";
  t[3950] = "OUT";
  t[3951] = "OUT";
  t[3952] = "OUT";
  t[3953] = "OUT";
  t[3954] = "OUT";
  t[3955] = "OUT";
  t[3956] = "OUT";
  t[3957] = "OUT";
  t[3958] = "OUT";
  t[3959] = "OUT";
  t[3960] = "OUT";
  t[3961] = "OUT";
  t[3962] = "OUT";
  t[3963] = "OUT";
  t[3964] = "OUT";
  t[3965] = "OUT";
  t[3966] = "OUT";
  t[3967] = "OUT";
  t[3968] = "OUT";
  t[3969] = "OUT";
  t[3970] = "OUT";
  t[3971] = "OUT";
  t[3972] = "OUT";
  t[3973] = "OUT";
  t[3974] = "OUT";
  t[3975] = "OUT";
  t[3976] = "OUT";
  t[3977] = "OUT";
  t[3978] = "OUT";
  t[3979] = "OUT";
  t[3980] = "OUT";
  t[3981] = "OUT";
  t[3982] = "OUT";
  t[3983] = "OUT";
  t[3984] = "OUT";
  t[3985] = "OUT";
  t[3986] = "OUT";
  t[3987] = "OUT";
  t[3988] = "OUT";
  t[3989] = "OUT";
  t[3990] = "IN";
  t[3991] = "IN";
  t[3992] = "IN";
  t[3993] = "IN";
  t[3994] = "IN";
  t[3995] = "IN";
  t[3996] = "IN";
  t[3997] = "IN";
  t[3998] = "IN";
  t[3999] = "IN";
  t[4000] = "IN";
  t[4001] = "IN";
  t[4002] = "IN";
  t[4003] = "IN";
  t[4004] = "IN";
  t[4005] = "IN";
  t[4006] = "IN";
  t[4007] = "IN";
  t[4008] = "IN";
  t[4009] = "IN";
  t[4010] = "OUT";
  t[4011] = "OUT";
  t[4012] = "OUT";
  t[4013] = "OUT";
  t[4014] = "OUT";
  t[4015] = "OUT";
  t[4016] = "OUT";
  t[4017] = "OUT";
  t[4018] = "OUT";
  t[4019] = "OUT";
  t[4020] = "OUT";
  t[4021] = "OUT";
  t[4022] = "OUT";
  t[4023] = "OUT";
  t[4024] = "OUT";
  t[4025] = "OUT";
  t[4026] = "OUT";
  t[4027] = "OUT";
  t[4028] = "OUT";
  t[4029] = "OUT";
  t[4030] = "OUT";
  t[4031] = "OUT";
  t[4032] = "OUT";
  t[4033] = "OUT";
  t[4034] = "OUT";
  t[4035] = "OUT";
  t[4036] = "OUT";
  t[4037] = "OUT";
  t[4038] = "OUT";
  t[4039] = "OUT";
  t[4040] = "OUT";
  t[4041] = "OUT";
  t[4042] = "OUT";
  t[4043] = "OUT";
  t[4044] = "OUT";
  t[4045] = "OUT";
  t[4046] = "OUT";
  t[4047] = "OUT";
  t[4048] = "OUT";
  t[4049] = "OUT";
  t[4050] = "OUT";
  t[4051] = "OUT";
  t[4052] = "OUT";
  t[4053] = "OUT";
  t[4054] = "OUT";
  t[4055] = "OUT";
  t[4056] = "OUT";
  t[4057] = "OUT";
  t[4058] = "IN";
  t[4059] = "IN";
  t[4060] = "IN";
  t[4061] = "IN";
  t[4062] = "IN";
  t[4063] = "IN";
  t[4064] = "IN";
  t[4065] = "IN";
  t[4066] = "IN";
  t[4067] = "IN";
  t[4068] = "IN";
  t[4069] = "IN";
  t[4070] = "OUT";
  t[4071] = "OUT";
  t[4072] = "OUT";
  t[4073] = "OUT";
  t[4074] = "OUT";
  t[4075] = "OUT";
  t[4076] = "OUT";
  t[4077] = "OUT";
  t[4078] = "OUT";
  t[4079] = "OUT";
  t[4080] = "OUT";
  t[4081] = "OUT";
  t[4082] = "OUT";
  t[4083] = "OUT";
  t[4084] = "OUT";
  t[4085] = "OUT";
  t[4086] = "OUT";
  t[4087] = "OUT";
  t[4088] = "OUT";
  t[4089] = "OUT";
  t[4090] = "OUT";
  t[4091] = "OUT";
  t[4092] = "OUT";
  t[4093] = "OUT";
  t[4094] = "OUT";
  t[4095] = "OUT";
  int x, y;
  cin >> y >> x;
  cout << t[x * 64 + y];
}
