#include<bits/stdc++.h> using namespace std; int a[2][58]; int dj[58]; string pz[58][7]={ { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 1 0"}, {"0 0"}, {"0 CCX 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 2 0"}, {"0 0"}, {"0 CJY 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 3 0"}, {"0 0"}, {"0 CJH 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 4 0"}, {"0 0"}, {"0 CYT 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 5 0"}, {"0 0"}, {"0 CYQ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 6 0"}, {"0 0"}, {"0 GC 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 7 0"}, {"0 0"}, {"0 HJQ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 8 0"}, {"0 0"}, {"0 HX 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 9 0"}, {"0 0"}, {"0 JYZ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 10 0"}, {"0 0"}, {"0 KWS 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 11 0"}, {"0 0"}, {"0 LCH 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 12 0"}, {"0 0"}, {"0 LJT 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 13 0"}, {"0 0"}, {"0 LJM 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 14 0"}, {"0 0"}, {"0 LZG 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 15 0"}, {"0 0"}, {"0 LYQ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 16 0"}, {"0 0"}, {"0 LBY 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 17 0"}, {"0 0"}, {"0 LXH 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 18 0"}, {"0 0"}, {"0 LY 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 19 0"}, {"0 0"}, {"0 LMC 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 20 0"}, {"0 0"}, {"0 QZY 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 21 0"}, {"0 0"}, {"0 TZS 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 22 0"}, {"0 0"}, {"0 TSH 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 24 0"}, {"0 0"}, {"0 TYL 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 25 0"}, {"0 0"}, {"0 WHX 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 26 0"}, {"0 0"}, {"0 WXR 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 27 0"}, {"0 0"}, {"0 XMJ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 28 0"}, {"0 0"}, {"0 YQL 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 29 0"}, {"0 0"}, {"0 YZH 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 30 0"}, {"0 0"}, {"0 YZQ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 31 0"}, {"0 0"}, {"0 YZH 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 32 0"}, {"0 0"}, {"0 ZF 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 33 0"}, {"0 0"}, {"0 ZLT 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 34 0"}, {"0 0"}, {"0 ZYX 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 35 0"}, {"0 0"}, {"0 ZYX 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 36 0"}, {"0 0"}, {"0 ZCX 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 37 0"}, {"0 0"}, {"0 FXT 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 BYY 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 XXT 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 DJ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 ZCJ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 HW 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 GJ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 YZQ 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 WBB 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 HZP 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0老师 0"}, {"0 0"}, {"0 CHX 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} }, { {"0000000"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0 0"}, {"0000000"} } }; void init(){ dj[1]=32; dj[11]=32; dj[27]=32; dj[34]=32; dj[18]=33;int t=0; for(int i=1;i<=37;i++){ if(!dj[i]&&i!=23)dj[i]=t++; } for(int i=38;i<=43;i++){ dj[i]=34; } dj[44]=35; for(int i=45;i<=47;i++){ dj[i]=36; } }

signed main(){ init(); return 0; }