这是人能写出来的模拟赛代码吗 2.0
//%^~
// #pragma GCC optimize(3)
// #pragma GCC optimize("Ofast")
// #include <bits/stdc++.h>
#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <functional>
#include <limits>
#include <climits>
#include <bitset>
#include <cassert>
#include <unordered_set>
#include <unordered_map>
#include <cmath>
#include <random>
// #include "ext/pb_ds/assoc_container.hpp"
// #include "ext/pb_ds/tree_policy.hpp"
// #include "ext/pb_ds/priority_queue.hpp"
// #include <ext/rope>
// #define PBDS __gnu_pbds
// #include <bits/extc++.h>
#define MAXN 200005
#define eps 1e-10
#define foru(a, b, c) for (int a = (b); (a) <= (c); (a)++)
#define ford(a, b, c) for (int a = (b); (a) >= (c); (a)++)
#define uLL unsigned long long
#define LL long long
#define LXF LL
#define RIN Cap1taLDebug::read()
#define RSIN Cap1taLDebug::rdstr()
#define RCIN Cap1taLDebug::rdchar()
#define HH printf("\n")
#define All(x) (x).begin(), (x).end()
#define fi first
#define se second
#define CA const auto&
#if defined(__clang__)
#define assume(expr) __builtin_assume(expr)
#elif defined(__GNUC__)
#define assume(expr) if (expr) {} else { __builtin_unreachable(); }
#elif defined(_MSC_VER)
#define assume(expr) __assume(expr)
#endif
using namespace std;
// const int RANDOM = time(0);
// template<class T1,class T2>
// class tr1::hash<pair<T1,T2>>{
// public:
// size_t operator () (pair<T1,T2> x)const{
// tr1::hash<T1> H1;
// tr1::hash<T2> H2;
// return H1(x.fi)^H2(x.se)^RANDOM;
// }
// };
typedef __int128 i128;
typedef unsigned __int128 u128;
typedef long long i64;
typedef unsigned long long u64;
typedef int i32;
typedef unsigned u32;
typedef short i16;
typedef unsigned short u16;
typedef char u8;
int ID;
class Cap1taLDebug{
#ifdef LXF
#define READTYPE LXF
#else
#define READTYPE int
#endif
#define DEBUGING
private:
ostream& buf;
#ifndef DEBUGING
static char fbuf[1<<21],*p1,*p2;
#define getchar() (Cap1taLDebug::p1==p2&&(p1=(p2=fbuf)+fread(fbuf,1,1<<21,stdin),p1==p2)?EOF:*p2++)
#endif
public:
Cap1taLDebug(ostream& out=cout):buf(out){}
~Cap1taLDebug(){
#ifdef DEBUGING
buf.flush();
#endif
}
static READTYPE read(){
READTYPE x=0,w=1;char ch=0;
while(!isdigit(ch)){
if(ch=='-') w=-1;
ch=getchar();
}
while(isdigit(ch)) x=x*10+(ch^48),ch=getchar();
return x*w;
}
static string rdstr(){
string s;char c=getchar();
while(c==' ' || c=='\r' || c=='\n') c=getchar();
while(c!=' ' && c!='\r' && c!='\n' && c!=EOF) s+=c,c=getchar();
return s;
}
static char rdchar(){
char c=getchar();
while(c==' ' || c=='\r' || c=='\n') c=getchar();
return c;
}
static string i128ToString(i128 x){
if(x==0) return "0";
string s="",w="";
if(x<0) w="-",x*=-1;
while(x) s+=(char)('0'+(int)(x%10)),x/=10;
reverse(All(s));
return w+s;
}
static string u128ToString(u128 x){
if(x==0) return "0";
string s="",w="";
while(x) s+=(char)('0'+(int)(x%10)),x/=10;
reverse(All(s));
return w+s;
}
Cap1taLDebug& operator<<(const string val){
#ifdef DEBUGING
buf<<val;
#endif
return *this;
}
template<typename T1,typename T2>
Cap1taLDebug& operator<<(const pair<T1,T2>& val){
#ifdef DEBUGING
(*this)<<"("<<val.first<<","<<val.second<<")";
#endif
return *this;
}
template<typename T,template<typename,typename...>class Container,typename...Args>
Cap1taLDebug& operator<<(const Container<T, Args...>& container){
#ifdef DEBUGING
buf<<"{";
bool fst=0;
for(const auto& val:container){
if(!fst) fst=true;
else buf<<",";
(*this)<<val;
}
buf<<"}";
#endif
return *this;
}
Cap1taLDebug& operator<<(const i128& val){
#ifdef DEBUGING
buf<<i128ToString(val);
#endif
return *this;
}
Cap1taLDebug& operator<<(const u128& val){
#ifdef DEBUGING
buf<<u128ToString(val);
#endif
return *this;
}
template<typename T>
Cap1taLDebug& operator<<(const T& val){
#ifdef DEBUGING
buf<<val;
#endif
return *this;
}
Cap1taLDebug& operator<<(ostream& (*manip)(ostream&)){
#ifdef DEBUGING
buf<<manip;
#endif
return *this;
}
};
#ifndef DEBUGING
char Cap1taLDebug::fbuf[1<<21],*Cap1taLDebug::p1=nullptr,*Cap1taLDebug::p2=nullptr;
#endif
Cap1taLDebug cein(cout);
// Cap1taLDebug cein(cerr);
ostream& operator<<(ostream& os,i128 val){
os<<Cap1taLDebug::i128ToString(val);
return os;
}
ostream& operator<<(ostream& os,u128 val){
os<<Cap1taLDebug::u128ToString(val);
return os;
}
template<typename T>
class Stack : public stack<T>{
public:
void clear(){
while(!this->empty()) this->pop();
}
void popuntil(const function<bool(T)>& func){
while(!this->empty() && !func(this->top())) this->pop();
}
};
template<typename T>
vector<T>& operator += (vector<T>& x,const T& y){
x.push_back(y);
return x;
}
template<typename T1,typename T2>
inline bool chkmax(T1& x,const T2& y){return (T1)y>x?x=(T1)y,true:false;}
template<typename T1,typename T2>
inline bool chkmin(T1& x,const T2& y){return (T1)y<x?x=(T1)y,true:false;}
/*
*/
string pt[505];
void solve(bool SPE){
pt[2]="0";
pt[4]="001";
pt[6]="01010";
pt[8]="0001011";
pt[10]="001110100";
pt[12]="00010011101";
pt[14]="0111010100010";
pt[16]="010000110010111";
pt[18]="00001101011110010";
pt[20]="0110011001100001101";
pt[22]="010101111100000001110";
pt[24]="01010100011100011100011";
pt[26]="0110010111111000000001110";
pt[28]="000011011101110000101001101";
pt[30]="01111011100101011000100001010";
pt[32]="0101001101110001011001000001111";
pt[34]="010011000111010101101110100101000";
pt[36]="01010100000100011101110001001111101";
pt[38]="0110101101011100000000011000101111110";
pt[40]="010100100111011000000110001111101010011";
pt[42]="00001001010111100110011010110010010111010";
pt[44]="0110110010001100100111100001011110011000101";
pt[46]="000001100001111000101101010111010111011110000";
pt[48]="01010110010111110111010001100100001100100000111";
pt[50]="0001000101101111011101010011000110000101111011000";
pt[52]="000001011100101101001101000010001111110111011001001";
pt[54]="00101011000010101110011110010101111011001100100000110";
pt[56]="0111110110001000001011001001000100010110110111110100011";
pt[58]="011101001010101010100111001000001110001101100110011110010";
pt[60]="00000110011100110011010111001100110110001010001100111001101";
pt[62]="0001010000010110011111011010000111010110001110011111000110100";
pt[64]="001001111011100011011010000100010110011000000111010100101011111";
pt[66]="00101011010010010110001010111100010101100101000111001100111011010";
pt[68]="0010100001000110011100111110100100101111011100000110100011110100101";
pt[70]="000001000011110111000001101100100010111110110110010111011011001011000";
pt[72]="01010110111110001110010000110011110100000000110100101100101010011110011";
pt[74]="0010001011000011010111011010000111110011010101011101000011100011101001010";
pt[76]="000000100110101110101100101111010010011111110000101110101100011010110000001";
pt[78]="01100101101001011111100001111100001000101100100100111110001101110000010110010";
pt[80]="0111010111001100001001010000000111010110001011000100110110100101001111111000111";
pt[82]="000001000001100110101111011111000010110010100101100111100110011010100001110111010";
pt[84]="01111101010001001010100010001000011110000101111001110010011101011110001001111000101";
pt[86]="0010101010011010010101100000010101011101100000011110101010011110010010101110110101110";
pt[88]="011001010011001111011011111010000011111001000000100110101001000110011101010111010000011";
pt[90]="01011110010111101010000011101100101010100100101011001101100101101000010000101100011101110";
pt[92]="0010010010001100111110000110110001001100100001011111010111110010110001101101110101000001101";
pt[94]="010101101011101010101011101010110000101111001110000011110000010101010110101011100010011000010";
pt[96]="01001010101011000010001000001100010000001101001011111101110011011001110110100101111001110001111";
pt[98]="0011110110011110011000111010000001011100011010101110101110111010001100110110000110100100000101100";
pt[100]="011000111111001001010010101110010110011110000100111100010001101010010000010000111010011111001110101";
pt[102]="01111001001111001101011011000000101111110001010100011111000001110110111100001100000011110100100100010";
pt[104]="0100000010101010011110101011001100001111001111010101110001000011110011101000111000011000111001100101011";
pt[106]="000011110010001101001110101111000101111011000111000101101100110011001001100111001011010000000111001011010";
pt[108]="01111110010110011001101010000001111100011110010110010111011100000010010111010010000101001010001100011101101";
pt[110]="0101000011111101111101101100000101101000111001101100010111100000000000000111110110000110110101011111100001100";
pt[112]="000011110101101101001110111101011010011001011001010011000010010110000101011111100010011101000001111000100000111";
pt[114]="00110000000011100011101101011001010001101100111100011011010111011100101111010110111011100000110010011100000011000";
pt[116]="0011111100001000010110110100011000010110011100111101011000110001110111001101001111010101101011000110101100001000001";
pt[118]="011100000001011100110011100000101100000011001111110101000010110011100110110010001100110101111111000001101001110101110";
pt[120]="00101011101001011101001101110100000111101000100001110001110111001001110111000010100100000010001001111011101110001101011";
pt[122]="0010001010001100111001100101101011101000110010011100100101010110011111011011110000111001011111100000000110010001110110010";
pt[124]="011111000000111111001000100100100100101001110001100100100110011101001010001001111000110010101111100100110100110011111100101";
pt[126]="01101010011011101011110001110010001110000100001000111010101101011010101100111110001011100001011010101101101000010011001010100";
pt[128]="0101000010001110111000100100111001111100000001010010101011101000101111001000001111011011001100101101001101011000011000110111111";
pt[130]="011010101010100101011011101001101010110101111000000010100010111001010100111100101001000110000010110101100100101110010111011110010";
pt[132]="00011110101000011100110110100110010100101110011001010001011000111101100100001100110001100110010100111011110000111110000011001011101";
pt[134]="0111011011011101000111110001100001100111001011011111010010100110110000000011000011101000000011001001111000000111000011110110111110100";
pt[136]="001100011010101111100001100100011111100011010101100100111000011010000000111110011000101010110000101011010010111010001001100011111101011";
pt[138]="00100010101001011101001111011110000101000101001010011011010010111001100000111100000101100010010010111010011111100011011011101000110111100";
pt[140]="0011010101011110000011110010010011101001000010101110000100101011111111110010100010001001100011000011011110001000111010011110101100001110101";
pt[142]="001101100011001101100011110000110101000010101101010011101110110010101000101110100100101101010001110101011100110001110011101100001100101101000";
pt[144]="01101010011001011001000011111011111010011000110011001010001000010111010001000011101010110011011100111111100000100110000000100010101110111010111";
pt[146]="0100100010000100011111101001110011011011111001000000010101110111111011011001011110010100101001100001111010110000000110001011000011111010011100100";
pt[148]="011000011011100001111111100100010011101111111010000000001101010100101010101011101100001111100110111100101100001010010110101010000110100000001101101";
pt[150]="00011101101111011110010110010000110110100011100110110100111100110010100110111010000111000110110111100101001101010100010110000000000111001101000110010";
pt[152]="0101011000111011101111110011001111111011001101010010111001100000000001110110100101000100010011101101010010101001001001111001100001010000110111100000011";
pt[154]="001001100010110011111011100111001001010110001110000100001010010110111011111001101001000101011110000101110100100111010110010100100001110101011000101110100";
pt[156]="01010000000111001001000100111111100100001111010101011110100110010011101101000000110111011111000110001101001000011101101010110000100010111001100110010111101";
pt[158]="0110110010110000011010010110101001101001101000100011101110101000010110100111111010101011010101101010011111110010011011111000010001111100001000011100001000010";
pt[160]="010010111001010110011000111110110000110101010011100100110001000001010011011111010010100011111000100010111001000000011111011001101011101101101011100001000001111";
pt[162]="00010011101101101010111111001010111001010010001010101000101111000101000101000111010011101010110110101111010000010000100111011001010100111000001111100010111001010";
pt[164]="0100010100100010100111101111000000111111011100010101110111110100010000010010111111110101111011000100111010011101001001000010001110100001101000100110101001001110001";
pt[166]="010110101101001010010001100011010010100110010001010000101011011110111000100011001101001000000011010101100111010011011010111111100011110011011101110101010000111100010";
pt[168]="01110010100001110101000010100011100010001001110001010001011000110111010101001101111001101110011100010111000110111001111010000111010111111101000011101000001001101000011";
pt[170]="0010100011110000100001010011110000100110111101111000011000011100001000000100000000100001110110011101011101001011110010100110111111100110100111011111111011100100011011100";
pt[172]="000010110000110010011000011010001110001110001011100010111010101000010101110011101011111000010100001001000100101100001100111111111101001010110111111101000110010100100111101";
pt[174]="01110011100111010100001111110001101001110000000101000010000011011011110101111100110100011110011110000101110100111111000100110010100001111101000111100100011111010000000110000";
pt[176]="0100110010101100001111110111001011010000010111111100100111110010101110010000001000101100100101100001100001101010001101011100011010011110100000110000101000111011101110100110111";
pt[178]="011010000011011010001101100010111111100011101101110010111100001000001010110000100111001000000100111111000010011111110010100111110000110110111000111011100011100011001010101000010";
pt[180]="01101110001011111010010101110101100001011001011100011110110010101000011111001110010010100111001110101100110011111000010010011011010001000011001000001100011001110100111110000001001";
pt[182]="0100011011111101010001111011100010001011010111010110010000001010000010010000110111101001100010011010001111001111111001001000010101001110111011110000000000111100010111011101101010110";
pt[184]="001001101110010001011111010100111111110000101001010011011011101111110110000000000110110010011100011001001101010011110010001111100001001101100001000101101101010000111010000010101101011";
pt[186]="01011001101011000000110010111111000000100100110111010011011101111100001010100010110000100001011100111101011111100101101000110111000101101000101011010010101010101111101000010001100100110";
pt[188]="0000110010110010011100000100011001101001001011000001001101111110010111000011101010011000011011101101100100110011101010110100111010110001110011011000011100010011100110000011011110111011001";
pt[190]="010011111011110010010011001111100111101101100101010101111101000110101011001001101010010100101111001111000101011101100110100100001000010010111011001101001110100010011001000110000100001000100";
pt[192]="00001000100010110001101101000010011111110011111001001100100011001101100110001011010010011101010101110000001110111101111010100101000001011110110100101000011101011100101011000110111000000011111";
pt[194]="0000010111101101110110111100000001111100100011001010100010000110101101110101011011001000101011110100011100001001100101011001010111110110111100101001101101011001000110101010110110001001000100100";
pt[196]="010011001001011011100001111001111111000100110101010100010100101100011011100010100100011100111010000011011010001111111000101111000001001111001100011010011000011010100100111100111010000110111001001";
pt[198]="00000100010010111100110100110000100111101011001100111011111000110011000000011101001001011010010111010010111100101111101001010010011011001001100110111001111010000000001111011100000110100111101101100";
pt[200]="0101011100000011111010010100111011010010010001100100110000110001110001110000100111110011011011100001010110000001110101001101010001110001010111111000010110111101001011000010010111001101000010111111011";
pt[202]="010111000011010000110001001011100000101100110010100011001110000111000011100111001101000000110000000010000111111100111110101111011111111101111001011001100010110011000000011001111001011101100111001110010";
pt[204]="01011011001111100001010011000000000110011101000110000101010100001010011100001110100110001011001110010011100010010101100011111011111011011000001100100101100111101000011111110100101101000111010111011011001";
pt[206]="0111110011001100100100011000110011101001000010110101100001011010010111010011111111000001000000010111101110000000110001111001011000100011111110110010100001011000000101011100111101110110011110100111001010110";
pt[208]="001010000001011110011101101100101001101101110000000000101000110101100110111110110000101010011011000111001010001100111111100011010100011110101001000101110110000010011100010100010011111101000100111100101110111";
pt[210]="01110011010011100011101101010011010110101100110001010011000101100010001101001101000000111110100011101001011001110110000110001001101001100011011110010000010111110100111001111100010011010100101100101001110110010";
pt[212]="0110010111001001011101100000110100101000111001000000100100001001110101010111000101100111111100110101000001101111110111100101101100101000000011111010111000000100010010101010011000001101110110111111001110011101001";
pt[214]="001010101101000100111010100100100010110110101100001000011000110111101100110111000110000011101010000000110011010010000101011110010110011010110101111011001010001100010001110101110110100001111110110010011101110110110";
pt[216]="01101100011110000100001001101000000111110110111011000101001111100011100010111111000011110001110100110001010101010010100001000110001111011001010100001101010001011001011110111010100110111010011110000011100100101100011";
pt[218]="0010100111111010001010011100000111111110011000100000000000000001110001011111000111100001101110011011001110101111001111001100100111101101110111100001001111101001001110111001000010011101011101111000000110000100101100000";
pt[220]="000001010101100001110010111010111111100101010111011110011110101111001101010111101000011000010011101000001100001000000000100000011111011010100101000001111001101010001001011111010100101111011111000010010001010101101111001";
pt[222]="00100100000001001100010101100100101011011011110101010111110101111100000111111110011100001100011101000001100011100000110111001111100001100100001101010100000101000011111101110001100101001101010010010100110011110101010111110";
pt[224]="0100011000101101101110000111101001001111110101001010010101000001000110110000000101111100101010110011001000101101010111010011100001100110011011011101011101001000100010001011011110000001111000001111111011100111000011001001111";
pt[226]="010111000111000000011101100001001110100110000101010011000101111101110011110011001001001010100011001000010110010010100001111101110111110101000011010011100110100000011101001001111111001100001101011110110111100011110010110010000";
pt[228]="00111100111010010001100000110110010101100011000011011010011011000111100111100110100110100111100101110011001100010011010001110001100001110000111110111001101011100101110011101100001010111001100010100101100110011101001001000100001";
pt[230]="0110000100110101110101011101100111011010001110001111111000010000110001000100001100111010011010010110001101011110100110101100010101010100010111110110110001101110101100101010011100110101010001000110010100001101101100110010111000100";
pt[232]="000001100000100001010010111100001001111110000111010100110001010101100000111001010101011100100111000110010101110100110100010110011011101101110101000110000001001010100011111110000011111110011011011001011100101100110011111010000111011";
pt[234]="01101010010001110111000011101100011100001011010101110100111011010110111101000010001001100110101101110101010000010101010110100111000101011011010000110101011110100000101110111001001101100011011001011100100110010001110001010110000101010";
pt[236]="0101001000000110111011110011110000011011010000101100001110001011110100011011101001011001110011011010010011011001110100101101001011110111001110000011010100100000101110011011100101111100000001000000101010110111000000110011101100111011101";
pt[238]="011001000001001011010001011011011111101101101001100110100101111000011011101010000111100001100110100110000011010001011011011010000110111111101001100101110110101101001010000100001110010111010100111101100000000101010001101001110101100110100";
pt[240]="01111100110110111011101010101011111010011001100001011001100110000010010001100001001001010101010010000000111011000001110011010111011100011011101100010001000110010010001100100101011111011000100000001111111010010001110101010111000011111110111";
pt[242]="0001000011000000111101011110000000010110110110111000111111110111110110011001000111100001001100011100111101000010100000101010111111000011100100010111111010010110110001110000011110010011100000110101001100000001010100001111011111000101101110110";
pt[244]="011011111010100110110111011111110001110010000000000010110111101100000010011000100011011010001000111110001001011011111010100010010001000100111011011111110100010110001010111001000110011010111110101101011111000001110100001100100101010100100100001";
pt[246]="00100101111110111101010010011000100000001111110011111010100101010101011000111100100000110100101110001001100010111011111000001100101110011000001111011001001001110101110011010111001111110011110110100010010100111001101000010001111000000010010010100";
pt[248]="0010101111100011100101001010000101000101000111110101001110111011011011110001100101001101000001110111001110010000001110101110110100111111010011101000010011100101000110010101000111010000011010001000001000111110011011011101100000111100010000111011011";
pt[250]="010010001110011111110101101011110011001111011100111010000100011100101011111000010001000011010011011000011110011100010010011110011101100001010110100001100001010110000111000110000001101110010111010011100111011110101001101001010100010011110000011101000";
pt[252]="00010110110110000100100110100101111011011011111110010010110110110000011010111001010110011000001101111010100010010010111001000000100010000000101101001001000110110011111110001111011101000100110100010111011000100001110110011111101100100000110111100111001";
pt[254]="0011001110100101111110011010010101101110111000101110001110000001011100001100010100001100011101000000011101100110101000001001001001110111111000010110101110001000110101000000011010101100111010011110010001101100111011110101100110101001101010011111110010100";
pt[256]="010010010110010101010010100111010000011111011010110100011101111100111000010101100000100000000110110110001000110001101001101010111100101111110001011011100110000110010011001101111011101011100011110101000100100010100001110010000100111100000010111011001111111";
pt[258]="00001011000000011010010011000010110111100110010100011110101011001111110101100011010100111011010110111001011111010000110100110011101110011000011111000100000001010000001100110000101011001100111100111111111000010101111110000110011001100100010110000111001110010";
pt[260]="0101010100111111000001111100001110011101101111001001001110010001111010111111110111011101001000000001000011010111011100000010111111100010100110110001001011001000100010100000001001010111001010000110011001110101001011110010111001000101101111001101010110100001001";
pt[262]="011110100000100001000100000010110100011011000110111110100000101100001011101100101001010101000110001101000001100101010011100111010001110111100010110100111101001111110011110111101101110011111100000011110110110000000110110100111110100100000110010111101110000011010";
pt[264]="01010011011111100000101000011000001100101110011110100001010101001101000100011000111011011101111111110001111000110100011100011010001101011010101000011010100001110111010101101000011011000110100100011111111110000110100100010001000100111010000110011101101110010010011";
pt[266]="0000100110010011110010001011101110111011100100010011011111101101111100111000001001011000111100101001000110100101001011010110001011101001111110001000111010011110001011000110110011110001110000101101101101000000001110110000110011111001010100110000110110110000001100010";
pt[268]="010000110011011011100100000011111001100001100000100111000100000100110101011010110110111101001000010111110111110010100010111010001111001110111010100100010010001110111000010000011101001110101111101010101110101011011101000000110100011001101110011001001111011100011000001";
pt[270]="00100010100001010000100001100110110001110110111011001001011100000001101110111010000110010000110101111101111001110011110110110011101011011011101101111111111111001110100000111000011010110101000110111110010010111001000100010000000101000100101001010000110100010111101000010";
pt[272]="0001111010011010010101100110010110001010101011011110000000001011110001001111011011111101000111111011110110000011110011000111001100010110001000110001100110110001101001010001001111011101111101001010100100100000000101110110010100101101110100000011110100111000100001010100111";
pt[274]="010011010010111101010110100010110101111001000001011100111010100010101100101100101010000100110001101001101000001011100110001110110111111101101000010001010010110101101010011000011010001001100010001100101010001101001110110111101001001011001101001111111000001011111010100101110";
pt[276]="01101010011000011101111001101001011111000001101100011001101011101110001101001100111011000001100101110001111100100001100100110011101001101000110110011101110110001001011000111011001111100100011100010111100110101011000011000111001001110100100010010000000011100001101101010100101";
pt[278]="0011101101111000110111101101101011000000101011110101101001001100101101011001011110010010011010001101001010001011101010101010011000001001100111000110111100101101101111101010000011011010011110010101010000110101101000000011100001110010010011101001100110000011001110100111010110000";
pt[280]="000111101111101000000111010011011001011010101001110111110100111000110111000001110110010001001101111001111110010110110001001011001110100010010001111100011101111010100010010010111010100011101000110000010000010110001011001000000011101100111101100101010111011110000010101001000001011";
pt[282]="00001111110000010000011011011000111111111011011101100000010000001111101100011010111001010101000000010100110111011100100000100111001111101010111111010111001010011000011011101111011100111100011011011100100010100000100001010010111110000000010001000010111111010100011101010111001101000";
pt[284]="0000011000000000011001101001101001010011011110100010100110011101001001110111011110010101111011101001000101101011101000101111110110000000100000001101110010101010110110001011100100111110000101010100110010101111010000011000000001010001110111011111101100100110011111011111001101100011001";
pt[286]="011001111010001000001111100101111001100111101000100001011111001100011001110110000011100011010100000111100111011110000010011100111111110011100010111100001011010100010101001011101101101111110101000000110101010010110000111000011101111111010000010000001010110000000011100010001110101110010";
pt[288]="00101011111010111001010100000101001110111110011111011111000101010011101011000111111010001000000001100001101001101110011000001101111101011101010110110000111011100100100111101100100010011010011001011011001000100010100100011100001110001100000100010100000101100101101011010011111000001101111";
pt[290]="0000010001010010000011100010101010001110000111111000101011001110111111010100100001111011101110000100011011110001011011110101111111111010010000000111101110000001101001010111100010100010011011001011010100110110111000110001011100001110001101000110001101111110111100011000011001111001001000000";
pt[292]="001100000110100100010011010011110011001110000111101001000011101010110111000111010100110101011101010011101100100010100011001100000101100110010011011010011001111001010100000010001110100011000001001011100001000011101111111001111010110101111111110010000001000101111011101101110101100111101000001";
pt[294]="01100101000100111011101111111000000100111100000101111111011101110101010011011000000000000101110101011111010100111000101011000011011011111010001000010011101010000010100111000101000100011100010000000011011011001101001110100011000111110110111010010000011100100001101101001111111101111101010010010";
pt[296]="0000110101000110001110110101101011101001010000100111010101011111011110001101001001011110000111111000100111010000110001100100000000000110101000010011110101101100110101001111111010110011011011100100011001001010001111100110001110100100000101010101100000101101100101100111100111100001111111000100011";
pt[298]="011001011111000000100011100000011010111111101110100111001100000000111101011111100100010000101010010001010000110011010100100110111110110011101100000011000010000100011001011001100001111110100101001010000011010001100111111011111101010101110010000110010110001110110101011101011111010010011001101100110";
pt[300]="00100100010100110001111100111110001000110100011010010111010010010111100000100011101100010111101110010011000010110101100110110010100001100100111001001000100000011101101100010011111110001110010010011100100111110011101111110001110010110000100011110011000101011011101000100101001001001101111100110110101";
pt[302]="0111011111111100111111111111011001110101111000110100001110000010000100100011110111001111100010001101001001110010000110110100111010000001000010101011001111001010011101110011011011001100100100100111001100101110001011111111001011010111100000110100001111110001001100011000000000011100000010101000010000100";
pt[304]="001100100001110001010100110001010011001101010111100000000001100011101011000100001111111010110100011100101010011010011001000001101011010111101011010010000010010110001110011001011011010001011110111000100001011101110011100001010111001000001000011010010010010011000011110111101101110101111110111111111000111";
pt[306]="00111001110010111100010001100100101100101001101111001100110101101001110101010101010011100110111000101111011101010010101000111111010101101001010100000100111110100110000000010011001000101011101011110001001000110101011110000011000101110011101011111001011111000101101000110000110101011100000101001100000011100";
pt[308]="0000010001001001000111110101111000111101100011111101001001110000010101000010000111011101100010010101000011001101010010010110010010001101111110100001011011100101010101111011111110110111001100100100011010010111100011000010101110110000100100111111110000111100010000101011110000100001100101110100111001011100101";
pt[310]="011111110100100011000011110001101010011011111011101101000110011101010110110011101010010100000110000011010100101000010110110101001110010010100001110111000111010011101101110000001000001101101100011111001011100001000111101010101001100010010000010101101101111001100111110010000001001010011001110110111101100100010";
pt[312]="01011011111111011100010000110000100000110100000001001000101101010111010011111011011101110001111011010110100010111111100001101110110001001111010010110010000101011100011011100100101110001000010011100111111110111001010110010110011011000110010100011011101100011100000111100010010101000001001000100010010101011000011";
pt[314]="0101010101110101001001011001011001001110011100111011001000010000000000111101010110011010001110110100111001001110110101010011001000100110011001001100101010100111000111110011010110111100000111100000110010110110010010101110011001111101011100010011101100001011001001111101000111001101011000001101111010001001000110110";
pt[316]="000001001101101001111111110111100000011010111011111110101010010010110000101110000010101010101000111011001010011011000000101000011010100010111011011010100111000111011100101101000100100000001001110011010000101110000011100011111110101100110111111010011100001000001001111100000001011011100110110010000101011010111110101";
pt[318]="00111001101111101100000001000010111001000011010100001011010100000111111111000100000101000010110011110000110110111111101110000011110001110000110111111011010011011111011011011001011011111000110000011001000101010010011110111110101111000000100011010100000001011111011001000011111000001001100011110010010010110011011001000";
pt[320]="0101000001010110010101000100110001011110101011110001011101101001000001000110111010011001100001110111100001111111001001011110101101011010011100110011111011000101110000111110111010100100101000110111001100001110010101101000111000101010001101101111111001011001001000000100000000100000010011110000110110011101100011010011111";
pt[322]="010110001010110100011011011001010010011010011010001110100011010010110010000011001110000101010001010101011001010001110101000010101010001011101110010011010010011001101000100011101110110110100110000111100111100101010110011110010111000100101001111110110011010000000111111110100101110110001100111111010111000010110100011010010";
pt[324]="01011100001011001010011100001010000111010101111100100001110110010101010101101000110101110011100111010001011101110000000000011011110011010101011111011010111101011111010100101100111011000111011010110100110011000000001111101000000011000011101101011000111001011001110001101011111001011100000011001100111000000111010100100000001";
pt[326]="0001011010111000111010010101100110010110001110011000001111011011101101111100011110111101010110001101000011000111101010001001011001100101001001000010111011101001100000100100010101000111111001010000100100111100110010011101001111010101011111011100001110101110010001110000010101011110101101010000111000001100110000100100011101100";
pt[328]="011001011110111111101000000110011000111111010100111100111010101011100101111010000100001011100011001000111000111000110100001101111011111110100110101100110101111101001010101001011111000110001000110010011000100011010101001100001100110000010101010101101011110110011111000000011010110001000001001110000011000100101001110001101000011";
pt[330]="00010100101001100110010110111001001000011011111010001011001010011100011111111011101100011010011111011111101101011110001000101101000011001100010111111110000101100001010111000011000110111001011010010111100110001000010100110110000001100001110011100101010101011001011100001000100110111000001101100100100001011101001100101111011100000";
pt[332]="0111100111011011001101100001000101000011010011101111100111000000001011110110111001001111011010001000000111001100101100111110111110101011001001100101110101100100001000100110000000101110100111001001000001011111011010010110110001110111000010110010100000110001010110110101100111110001001101011000101101110000000110110001101011110011001";
pt[334]="010001110100100100011001100101010100101001101100011100110101000010101010110010000010101011000100110011001001101101111001001111000011111001110101110111010100011101001011010000111000110000001000011111011010110100011001100110111101110100011110000110001000110101010011110110011110011011111101100111000010101011110111100010010000010100010";
pt[336]="00011010000001011010011011111010010010110001110100001110110110110000001110010011110111001010001101101001000111000101110101001011111110101001111100101111100000010001011111000011001101010101101100100100101100111011001100011001010101000001111011000001000011101000110010111111001010010110001110000100011101010010000001111101011000011110111";
pt[338]="0001110110111111101000000001100000011001111110001001001011001110010001111000110010111001100110010110011001111100001010011000000110101101001010000111101010101011011111010110011101101101010100000001101101101011000010100010000000110101100111110111100000000101011101010100100011101111110001101101101101101111001010000001110011011100011100010";
pt[340]="011000001010011100110011000111100111110110011001001100000111001010101111101100011101010011001010000100101111010001100011001000010111100000110111011101011000001100101011111110001110111010010001111010100110011100100001110100001100110011111001000101110001011110100100110001110011011001000010011101001000101100101000110101010111100111101000001";
pt[342]="00111111110100001110000001111001011010111000010101110001100001010101110111111011100000100011001001000111011110111100111001011010111000001011110000111100000101111110000011010011000110000111001101010010101011110111000101000110100000010100100110001000010101011110111100011000000011111111011100100100000110000101011100111110111111010100011000000";
pt[344]="0001000001101010100010001111110100010110101111110000101100000010000110101000100001110000011110111011011011011011100011011011111111001001100011011100001011100100011011000111001100011011110111111101101001101000111101010001000111000110001001011100011111010000111110001010010100100111011000111100010010101010010100110100110101101001001010100000011";
pt[346]="011111101000110111110100111100111100001101000010111010010111100100010011010010110010001100000011010101011101101000011000111000111101101101100100001111000111101101000011100111000110010101111011010011100000000000001000101001011100100100100111011111000111101101101001010110000001100010011101011000000001110010111100110111001000011101100111110100110";
pt[348]="00100011001000011001110010001011011110001110011110011100100110000111000001010010011000000110010010111011100111001000110001100001001101001001010011011000111010110110100111101000100100110011100110001001110010001111001010110100011100101101111101101010110110100010000011100101100110100111101010110000011111110001101110110111001111110000010101101110001";
pt[350]="0010010001001100011101001110011100100000111111110101101001100101011010001111110110100100100110000000010110110111001100011101101010010001100001110100100011010100111111110101100011001011001011011100010011001101110001010011011001010001010101010110101111001000000100111110111001010010000011011101011010001010011100101111101001100111001011001010001001100";
pt[352]="010010001100010110111111010111010101001111110111001001001000100001101010101101011011000011011101100000011001010110011001000111101110110010001110100101100000101001110000101001111010001101000001011111111100010100111101101101110000111001111001010010001001100010000001101000001011110000000010001111100011011010101110101110011001111001100001010010111001111";
pt[354]="00011100010010100010101010101110100111010010001010100010000100101010111100101001001010000010000111101010110101000110101101101100011001001011010100000010101011100100011100100011111111110111010101111101111000111100110101011111110101010100011011101000100001111011001111010100110001000000001011010111010111100100100011010000100011011100101010010101110110110";
pt[356]="0101001111001111101001000101010100101010011100000000001110101001111010111101101101110001011011000000000010110010110001101101100010001111001010110100011100000110001100001111011110001011111111110101010110110100101101110100111011100000011110110011111000011000001011110100100111001100100110011010110101100010011011111001100100001000010010011000001011011010001";
pt[358]="010110000011010100111111011110110010100111111011110101101110101010000000110010110110000010110011100111001001101101010100001101110000110011001110111001011100101010001111101001111001100001101110010001000001111010110010010101011101100101011011101010011000011011100010000111110000100000001000100100110110111000111011010110000001111101011101000010011001000110000";
pt[360]="01000110100100111010010000111011010000010111110001110101010000111101100011010111010011011000000000011011001000111010011110111010100110110110100001110010010100111001001111100111110011110000010101000010001001110000000100011100111001010010011111011111000001110010010111101110110100111110100101100001100111101011101110101110101101101010100010010000101000001100011";
pt[362]="0010100101011100001010011010000110101100011010111011110001001110101011010001100111100011100101000111101101010011000100011001000100011101110001100110101111010110110011100100010001011100011010011111010001101010100001010010010001100110110111100110000001110000100010111000111111100100101000111001001110001100101110011100010111111000000001111110110001100101011111100";
pt[364]="011001001011111000110101101110111001000010001011010101111001110111001011011110011001100011000011010111011010000010110111001100000101100010000000100111001100011101011011100000110101010110011010000011011010111100010110000000001110111000011111001001011000001001001010101000010000101010110100000011111100010101111111101000111011110011111001010001110011101011101001101";
pt[366]="00110110101111110111011001110011111111000110100011111000101111110011001010001101000100000000100011001001010000000110111110000111111000101000011101101000010000011100011010001101010111000001100111111101101100011011111110100111100011101000110100101000011110011000111000000010110011110000011100011011001110111011000100001001001100101111101000010110010000100110001110110";
pt[368]="0101100000011011011011110001000001110110001010000011100110010101111100111001010011100100111101110010100111000100010000001001000110100111110101000010001111010001010101010110101010000110000100000111001010011000011111000111111111110110110111011011000010110010101001100110010011101101110111011001111111101101100001011101100101000010100000010100010000111001101001110010111";
pt[370]="001101111010011010011010110100110100110101001011111100000011100101110001111001110011111000001010101000000010001010100101111100010110011110001011111010000101001011111000010011101100111100111110011110000011000111000000011011010011010000100001100101000101000010100000110011110110101101001011010111011111100100001000110010111111111110101101100110100010001100101100001100100";
pt[372]="01010111001010110110011100110011100111001100010011000011100111110011011100000010010011001001100000101010110010101100100000101010000110011010001001010100111100111100111000110110100101110000110111011100101111110011010001110011100111000100111101101111001010101011010101100110000111011010111100110011111100100011011000000110100110011000001101111000000100000001101010001111001";
pt[374]="0101110100110100000101110001100011001000110100011100000100011001100110011100110000101001111011010100000111001100010001011100001011011011110000001111001010101011111100110110001101001100100101100000010011110011000011101000010011100001001101100011110111111001111010011101110010010111000011111110110100110110010001010100111010010110001110110000100011111011001111010001011110010";
pt[376]="000000101000100001111111100010101100100010001010100010001000110111100110011111101110101100100001110000111001100010101101000110100100011110001101010001011110001001101011000111101001001011000101010001100010110111100011011100001111010110001010111001110011110001010111011111100010101000000110110011000010111000000011100101111100110101011101101111101101010001101001001110111000011";
pt[378]="00001001100011001100001001100110100111101000001010101110100111011001110101001100010001011111010011000110100110101101110100110010011000011101101010000111001111001100001010000010111001111100100101000010000111000101101011111001000111001110011110011111100011011110110111011010011001110010100111010100011011000111001000101000000110100111000010011010111000010010011110111011101110000";
pt[380]="0101011100000001111100000011110011100110110010111011111000110100000110000010100010001000011010110010101111101100110111000001110001110101010101111011110001111100001111110001111011000110010010101010101010001000111010001101101100010001001110101010111011101000010100011100010110000011111110001011001010101010011100110100011111001110100011100100110010011101110010011010000100110100001";
pt[382]="001010111000010100101110000111001011101111001010111000001101100110100111001010110111101001110100100101010000001001000101011110000101110101001111101101110111011001010010100100000111111101010101001010000111011001110110010000111000101100100000111011111010100011001000000001001010000111011101001011010010011011111110011001010100110111101111001001001111000011011011100011000010000011010";
pt[384]="01001000011011111001101110000100100011100011101011011010010111111010101000011111010101110110000001101010100110001010110011100011111000110111001001110100101010001001001111011110111011010000010110010101100111001001101011101100010001100101101101000101000110000100000110011110111100110000000101101100010100110101111000010111111110011001010011110000000011101000001000100101110010000111111";
pt[386]="0001000101110001111111011110000001110110011110011011110101100000101110000011110100111011011001011110000110110001101001111100111010100110011100110100110111001100011101010000001010001000001100111110110011101001111100100001111100111010101101010000000100101111010110011000000011000100001110010111110010011100111110111000001000001101000101111111100000101010000000010110100111011101100010000";
pt[388]="000011000111010010010111101111010011011100101110111101100110001010010001101110111000010110011000001001110101111011100011001100000011001000101010011100110001101111010110001100101010101000001101001101111001000111110000110000011001000001011110110011001110110111011010010110101011010011111110111000111011100001010110011110001001100011001110000100101011000001010001000011111000111010100010001";
pt[390]="01111110110110101011011011100011110111010001110110001111110010100101011111010101100101100000001000110000000010110011111010110110111001000100101111001111011001010110000110010111110010110111100111110011001100000011111101010001010001001000000100001011000011000111111000001010010111111010110000011101010110000001001100111010010111100100011000000110000101110000101011010001010110000110110001110";
pt[392]="0111000110110111110111010101000101000001101101001000101000001111000000011110000100100110100110000100101110111001001101100100100101001001001011101001001101110111001101110010101111010111000011010000010011101110011000010101001100111111011000001010111011100100111110100000100000110011111000001000011100001101111000100111110010000101010101110100011101101111100000010111111011011101001001011011011";
pt[394]="000000100001010010111001101101001011101111100100001000110100001110110000011110011101111111110110110011000111100111110110010011000001000011110001010001011101100110001010000001001111000110011010101100001010001010011101101101000011111110010001110111011111101011100000110110000001100010001001000111111101101110001000001110000011010110111011101101100010110101010010011010111100010100111010101001000";
pt[396]="01011101010111100001110100001000111101111000010110000000010101010011010000111101110100101011011101101000110000110100100111110001000000000110110111111111111011101011100101010101101111101000100000011011111011010001011000000001000101011110001011010101101011111111011011110001010010001110110011101010000100000101111101001110100001100000000101001101100001010110001101011001111011110000100101001000101";
pt[398]="0100110010001010100010000101100010100111101111110111110010100010011000101011011101110111101110001111011011000010100010100001000101010010111100000001111010100000011101010001000011101101110000100111010101011101101001011110111110101111011101000101011110001100111001001010110111101001000101010010111010101010010110101010100010001000010010101101110101001100011011010010101101010001001010110101100010010";
pt[400]="011000110101110011000110001001101011000001111001110000000101111111000100010010010110101110100000101110001111011001111111001101010110010010000000010100011110001001100111111011101011101011101100010110011000010101001000101100111100100010111101000000111011100010010011010111001101001001010011000110101101110101010100000111110110100111010000100001100110111010100010000000110010111111111010010111000110111";
pt[402]="00011011000001101011001100111011111010000110110010000001011111100011011110100111110000001110111111001000111101110000111011000000101111100001111100010001110101010010010111000011001110100001011011000110100101010000001110011100111111001110010101111111011101010100111100101100011000111001010100001111000001001111100001001000001001101110010111110100000100000100110011101010001100110100100111011000000111100";
pt[404]="0100110000011100011001101101110001110000101100100011110010010110000000100100010100111001011101110100010000011110000000110100001110111100001101100001100110101110010110100011010011110110101100000101111101111011111001000010100100110011100111111100001001100110001101100101000010011101011101101001100011100100110011110101000111000110010111100101100110100100101011101110110101101110001011010001100011101001101";
pt[406]="000111100011100000101010101010101100011110011110001101101011000110011100110101111100111100110101110100011000010100110101101111000010110010100001101000010110110111111010011010111001110100111011111100100111111110110000111011100000101101011011001100010100001100001110010001101100101001010111011100011001101100110001110111011001001101000101100000000100000100011010001010001000001010011100101111110001001001000";
pt[408]="00111110010001000111000011010100111100001111101010001101111100110101010101101101111001001010010100011010010000110010101101111000100010110010011000010011001110000101010001010011000101110111010101000100011100101111101001100011110000011110101111001100101111111000000100111100111101011001011000111101011000110000010001100000100000110101000011000000011101000011101111100001110110101111010110100110010101111011011";
pt[410]="0110100100001000101111011101011101010111101100011101001110011101101010101111000011100101110101101110010101100111011001001111010001100111010111110000100101001011010110101011011010101000101000001110100010101111110110000100001101100111000101110010111110001110011110011000100001001101001100011110010110001111011001000000100010000000111011101011100010111111000000010001101001001000110100001111010000110010101010000";
pt[412]="011011011110011110111110000001001010010101110001101100111110010101111111000010001001000100101011011001111111111011100011000010011011011101110100011101011010010010001101000111100000000011110100001010011000001010110101000000110000010100001001110011111001000111100101011110000110011000010100001111000101011001000010111001011101010001001100010101010101011011001001001001011101110011110000100111100011011111110110101";
pt[414]="00100011110011001111100000001110011010000111010010011110001101110010000010001110011100111101010000100110110100001101010001110010111110110111010000100000101110110000011111001000100111111000101100101000011011010001011011110000101101011111111100111110001110010000000010000101010111001110011100101111010010101011011100111110010111100100010110000110110011011111010011010110101001010010000010011011000000110011010100110";
pt[416]="0101001111101101010000010000110101001111011000010011100011010000101110010001110010110000001101110010111001111111111101111010101001011110110010110101000100001111010001100000110111011011110100110101000111011010011111111010101110010101101110001100011110010011000100001100101010011011110011101000100011100101100000001000001011000110011100000010010111100101111011100010010010011000001000000101101100010101001101011001111";
pt[418]="010011100010101001001110000010101011100000011111001000110011110001010100011111010010111001101110100010010011110010101111011100101101000101001111011101100001110011000011100110001101000011010000110110101111010100111001101100010001100110101110001101111100111010111101110000101111000011001000001110111111001100100001001010111010111010101010111110011111010001000011001000001110111100011001000001000001100101111000000010010";
pt[420]="00100001000111011100110011000111011011101100110000001100011100111010001001111101110110101010101100100101001001010111011010001000101111010001110000010000110000001101010011001111111110100110100000110010010010010110100010111101000001101100101101111011110000011010011011011100001010100111001101101000101000011100111011000000110110111011101110100110011110000000011010011110100110110000011001001101100110010110001100111111101";
pt[422]="0010100001101100011110101010001110001011011011001001000111011010000000111101001110111110110001110010010000111111111110100111111100010110110111011111000000011010101101010101010011100010100001100010001010101111000001010110000111010001010011111001011000110010100010010001101110011101101001100100011110101101101010001101100000011111011001101100001010110011101010101011001010000110001101001011101000010101001010101100101001010";
pt[424]="000000110100111110101001011010000000000000011000001001100101010101101110001110110011101001101111100110010100010111111110001011001110100010010010000001011000011100100100101010101000111110110001101110011011101011010100001111110100100100011000100011110001101010100001000111011110100001111101010110011111101000111101101101111101100111101100100101001111011101101000001001100110110100001011010001100100111000001110001001111001011";
pt[426]="01110110100010001111011010111000100010101111010100101111101000100111011010100100110100000011011010101111010010101011010101101100100011100100000010111011101010000111110000011001101111011101000011111001111110110110000010110010011100001001010010100010100111011110100110100010101010101101011111010101111010010100110000100110111011001111000000110100101010101100100111101000011011010000100010111100000110111001100010000100000110100";
pt[428]="0110011100111111110010100010000100100111001011101111111110010001011110011001101110101111111111100010111011011110001011101001110010010100011011110000110100111000101100101111000110101011001001001101011001000010000101110001100101100010100100101101101001010001001010110000001110000010011000010110011001111001000111100010001000011101011111000000001110001011100110110001101100110100001011101011000110011010110011011001011010001000001";
pt[430]="000001001101100000110111101111010000111001100001111100110010011010010111010100000001001111110110100111010101010001101000110110000011000111100011011101110000100100011010111110000111101010101100111001010101101011100010101000100010101011110111000111111011001101010010111111010100001110000101100001010001111010110001110001000000010011100001101010010110100011011001000110001110111101010000000010101111001010001100011111001111111011100";
pt[432]="00100001110101111111110000010000100011000010101100010010000110110111011000000110001111100011010011000011101010101011011010101110010000101110111101110011010011010000110010111100101100100100100010100000101100010011001010101111000000111001011100110000111001011001001100111110000010111011110100100001001101000010001110011010110111011101111111100110011010101010100110100111110111111110101000110110000001000010010001110101000011101110111";
pt[434]="0011011100011111110100011100011001100100000010110100101000011101000110010111100110001000100110110101110011100011010000001111001111010010010000001111100011011000101000001011001001111011001011110100011010110000100000111101010110110011011001110110001100100101110110000101010110101110011110001110000010001100001001000111011011111110000111110101011010000001010011010000111100111001000001100111111111101011101011000001010011100110111010110";
pt[436]="011000001001100011101011001100000110010000000011001110110110000011100010000110001010001010101010000101110110110101110001100111011111011110110011100111110101001000101011000000100001110100101111101110110010010110110110110101100001011011000001110100000001011001000101111001101100000111101110001101110101011010111100010011110011001010011111100110111001110101010000000100101111111000101101101000000100001011110001001011010011010111100111101";
pt[438]="00100011110011000111111101100001011100000010110100100000000011000101111111001110101111101101000011110001011000000010000000011000101000011000001101011011010101000011000001111001011010010101011001110011101000001101100010100101101001111111111100000110110111010001100111010111101100110001011000111100001111000100111010010000001111000111101011110110110111001010101110101001101011010001111111000010101110001110010000000111100001110100111011110";
pt[440]="0000101101110111011110000010111011000010111110001111010111000101011001100111110001100010110001100111000100010100101110101010100010010010110111000010100011111010110001110101011011100101110100100111100100010001011100011011000101000000001110001000001110111010000100010101100000001001000100110101111100111011000111110101010011110010001000111101110111001001000110101010011011011011100011111001000110111000111000010001010111111000101100001111011";
pt[442]="000010000010010111000111101111010011011111111000101110111111111010110110001000000100011100100000111111000110000111011001000000101001000011101100011110110001010110101001000110011100001110100010110110011000000100001010101010111111010111110101101000011100000010101001001111001101110110100111111101011100101011001001100000101001100001110011010011110011001100100110110110000000110010010110101001110010111011010000011000010111110001011110001101110";
pt[444]="00110100110110111000011100010011111011011100001111000001000001100000110100000111101010101011010011001001111000101011111000101100010001101010110100010110001011010100001000100110001110101111100101110101011100100111001111100000111100110110110011111101011011101101100101110010001111011001000101000001100000110101111110101101100010110110110101100010001011101011100110010110001100111111011100001000010000001010010000000111010011010000110110000111101";
pt[446]="0110001011111111010010011101001100110001101001011110000000101011001101000001000101011101011101010001001101110001000011000101000011010001011110000110110010011011101110011000010101111100011000100111100100010100101010000001101010110101111001111011100011100111101110111100110111010101100111010011100000100111010101110111101100111100100001011100001100000111011010111001111101011000010100010101111010001110100000101100010010100101111011001010000000100";
pt[448]="010011101111111001111010000000111000001110111011000010101010011110011100011011100001110100100001011000010101010100010100110101100110001001011110111110011000010100010100100000011110100011101101101101101101100010010111011100010001101011000010000010011010110001100100110011110100011110100000011010110010100101110111100100000110010010111001100100011010101101111101010010101101000010001111111100101110001001111110011001001110001011111000000001101011111";
pt[450]="01000111101011111010111010101110011111001000000001101011110000111011110001010010011000000110000000001110000001111001110000011010101110001110011111110100000001001011010111011110110111001000010110100101000011111101000000100011001001011001000110011111011001010101010001001011110000100001111011011111100100100001101010000010011100100001010000111001011000010111111001000011111101111010101000001011010111111001111110100110000110011101110001101111001101010";
pt[452]="0011010001000000111010011010011111111101001011010110101100001000110011100100110110100110110011111011001111111000100011100111010111001000110101011100010011110000010010111111001001011000101110011001001111000010100111000001100001010000110011100010101110110110010110010011000111001100011000010110100111011010001111010011011101100011111010011111011011101000110100100010001100011010110100110100110111100000000110001100110011000011001101100100110100100100001";
pt[454]="000100001001101100101001001001010100111111011111011111000010110010010110111000000010101101111000111111001111000011110011111101110101011010000000101100011011010100010001001010100001001011010100011011010100001011101111100001100100011010000101011010001111011111110001000101111101101010011010010100001011000111000100011100111110000011000100011010001111100011101101111110100011011010000011100000010010101100010110110111100011000000011110110011101111011010000";
pt[456]="00000001011101110100100001100111001100000011010101111111101010001111010100000001101111001101000111111010110111101001111010100101011011111010010011100111000100001101100110111110001010010110101011111100110000100110000101000100100000101011111011101100110110100011111100100111101100010000010010110101000111001111011010110011101110000001101101000110011000111010001010100100101001111000000111010011101000001000010111001011001000100000111100110001101010100110011";
pt[458]="0100100110000101011100101010000001100001000011000110101110000010101110101100000010010010001110011101001011000101101011111010001101110000001000111011000001110101011100011001111011101010110000100111100100111001100100011001111011110010010101101111111000010010010100010111110110010111101101110100011001110011010110101000010011011001010111110100100010011111101001110101111000101100100101000100000111011110011010000110011010101101000011101110101010100011111001010";
pt[460]="001110000000100110110000100001001100110010011011011001001010111100001111010110111001101110010000010110000000110010011111100101000010110101100100111110011011111010111010111011110111101010010001101000000000111100010011111011010110100110111000100000011001001011110101001011110011101110001101010111010010011110001010111011110001000001100111011000011100000010110110011001000011001001110111011001010111001001101110001101101010111100110101100001110010010000101100001";
pt[462]="01111101001111010100101011001110100010010101010010100100010000100101001100110001001110101001101101010101110010001101110000011011101101100000010101100011110011111011101001101100000110100010100111010011010111100010001010001101010010101000111110011000000010001110110011011000010100111010101101010001100110010101111111100111001111100100001011111011000001011001100000110111011100101001011111010000100111010111010100101110101110111010001101100101100010000101001001100";
pt[464]="0111101011100101001110010011110100000011011010101111100011011010011110001000100000000001001001010001000101100011100011111000100111010000101100001000010101001001001001011000011111010111001111100100111000001011101011000100110110111000110000001000101010101111010110011011001111110110010110000101001110100110100111101011011111100011110010101111101011011110011101101010001101110101011010001100010110010011001111101100000000000110110010001100011111010100001001111000111";
pt[466]="000011111011101011110010111000001101011111101010000101101001110100110101111000001000001010011110101110111111110000101101010101111000110110001100100010000110001101100010111011000111000110101011101101110000110001100000001011011001000101111000000110100011110100101010111000110001011111110001110101100001100011110110000000110101110011101100001100101100010101001111101000000100101111011100010110011000011000100001111000010011001000111001111001001110001001101110011110100";
pt[468]="00101110110010111111010100001000100111010111000000000111100110110011100101111100101110110101001110000100101100101110101110001001101010010001110001010100011111001110101010100011011101000011010010000110100100101000100010111111100101011111001100110110001011000100110001001111111100101110101111100110011100011000100011011111001110010111111111000000100000010010110011010000110001001111100111110010101111000001010100010010011110101000100000010001100100111010100111000101001";
pt[470]="0010100000010000000011100100111111000101001111010011110001111110110001011110010111001001111110000000000000011011101000100111010011111011100100000011111111011110111101001000111001011100000110011010101000001100011110100010110011110100011001111111001110011010111110000010011111011100100011000101000100100000101111011010010100000111101101111000010000010001110011100111111000100000110111010111100001111101011010011001100110010011111010100111000101000111000001101010010110000";
pt[472]="000101000101100110001011111100110110110111111111000010111000010101111110100000100001100010000000010001010110110000011001011101011010001101011111001000111101111011010100100110001101101111100010000101111011011001000100010111101110001000100110000110110100101011101001010001100001110010000110001111010101110101111111100100010000001000101000011111000100101001101110110110110111101101010110011000011001011111100110001010101001100100010010110111110010110000111001000100011100011";
pt[474]="01110001000100001011101011110110001000001101110110111010000110010011101001001010011000101101000110110011101001011101100100110101011111000010110110001010110010010000011100110101001010011000110001001010101111101011101001101100101011001101101010011110011100101100011111001111111111011101101001110100100000001000011101111111010010110101000110100100001111000110101011100001010111001000011110100110110000001011010100100100001101001000111100101001100111010101000100010011110010010";
pt[476]="0111101010001001000000001100100001000000001101001011010000001011110101001101101010000110011100101000111100111100000101100111010110010110010010100001100001011011110000010110011101000110100001111110111010000010001111110010101111011010100000010111100100111010100011000111101010100001110101011000000111001000111100111111110100100001001001110111111011110101100000001011110111001010001010010111111010010101110101110011001000101001111011110010110101101111110111011001010110000110001";
pt[478]="000111011100101000111000111111010100001011110011110111110000101101001010000011101010001101110011001100010101001001111000100001101110000101011001100100110110001110010011110001011100001110110101000101111001101011001000101101101100001100100100101111111010001100001011111000000000111010001000111110101101011100101001101111111110000100001010000001110010011011101100000111100111100001111011101001001000011101100101110011011001010001111000111011011100110000111100010001100100101000010";
pt[480]="01011001100100111011100100111100000110010110000100010100110100110101101001101101111110011000000101101011100100001000110010011110000110100101100111111010001100110001111100000010111101100000011010010011111101011001000111001100101000001111101011110111111011101110111101000110111010100111001110001000101000101011011011011011101110101111000010010100101010101100000000111010110101001010111000010110000001001000100001110000111001100010101001010000010100011111110001101111100100010001111";
pt[482]="0101000010111110101001011000110100011011010001110010101100010110111001110011001000001100010010111011110101111100011101011111010011000000110001010001000001010011001011001110001001011001110100100010001001010101100111101011001000100001001010111010010011010101000110010100100010100100100110110011011011101010110110101010101101001100010111110001101110110011110101111011001110000011101000101000001100111101111011101111101111011010000101101000101010100101011011101100001010101101100000100";
pt[484]="010011000100001111000001100000011000010100111110011101000100100110001100101110010010000110011111011010010111111110111111101110011011001100100110110010000100011000111000110010000101111000100101111010101100100000000110011011001100011110011100101011011011001101111001010001100110011011011111011000100110010110011001110110111011000011010110000010010110101100011010010100101001111001100100000001110100101000110110000100111001010100110100111101100000011010111011111011000110011011001110101";
pt[486]="00100111110010110001110101000011101101101100111100101110001011110100011111000011110100001101010111100111010100100111111000110100011011100100100000011001000100001000100100101100110000111111110100011101100110001111011011100000111011010000000010100000111010010101100111100010000001000001100001000010000111010101100110100001111000001100001110001110110011110110000101111001101010010110111011100001100101101111000011000111100110001010001101101101100100111111100011110110100111101111011101000";
pt[488]="0001100001001000111010101111010100110111011101101100100010011001001000010100100010001000011010000110101000111110001110111000101100011011001111101101010101011000011111000101010001000001101111111000010010001100011011100111111110011011111110010011011000000011100101100011011000111111111010111111010000101011010101101110010011010110100010100110100100101001010111010011100101011001011011000111100000111100110011101111000001001000010110110001111111010010001011000000000110101000010110110000011";
pt[490]="010011101100000111000010101000101110101101010001110001110110001000010000000011011001101110011101000011100001001111101011000011111011011000000110100001101000010101001011100011101011111100110010001111110011000001101110010100111100110110011101101111000111010110011110001101010101010010110001001101000010110011001001110101000001110100010000001111011001000000100111101101001010011100001001110010001110111111011001100101101110100000111101011110011101111110000001111101110010000011000011011101100";
pt[492]="00110111111101011100110100100001110110001001011101001110010101110110001111001010000010011001111110000110001101011111111100110011011100111100101001101110101011101101000011010001010100111101011100001110010100110101011000110000001001100001011001100000100010011100101111100010111000000111001010011000011000000001001100011100010100110100001000100111011001011010000000110001110001111111101011011110110011101011010001001010111010010100100000010111101101001001110110010101110010010100111100001111101";
pt[494]="0001000101100011010111001010110010100011011110110001100110010110001111110000011011010010010011110100100100001110110001110111001010000100001100101001111111001100000010001100010100110111111101100100011000110010010111110010010011111100101011001111100010000010110111110110000101110000010110100100010011001100011101101111000111001101111011100000111011010010000001010110100110010001101101001110110110100010100011111000100100111110010111010111101110001011010011100110011100110010000101101011000110000";
pt[496]="010000001110000001110010101010000111010011111001011111110110010011000110110100100110000101101100100001110110010001111111100010101000100011100010010101001001101000100010010101011110110110011100110110100011101011111100011100001000111101000101111000000001010110111001011000101001010111000110110000101110011101110111010100101001100001110011001110010000011010111000011010111011110101101101101000110101001100000011011100000000101101111111101100100110010000111111110100100101010010111110001100100000111";
pt[498]="01010010000010100110010011100101101100010000101010100101011000101101011111010010111101101100010101110001001001000111110010000011110010111011110011011101010001100010010111000011110000010100101011110011010000111010101110010111010011001000101010111101010101000111001101001111101100001111010101010000110101001101010100101010100101010101000010000101010010011111011110110111110011100001000100011111100011110101000001101101101010100000110001101100001100011010101101110110100101001000011100110101111011100";
pt[500]="0000110001110001110111011110101011010111010001110011101100110010000000100101010001110000011111110101001011110101000000110001011101001100100110000011111100110001111000101101110001011111100011101100101110011111111001101101010001101010100100010101010110111101011010000011011101011110010010010000001001000110001010110010101010000111011011110000100001110001011011100110000100000000100011111011110111000111100001100110011110111000010110100000110010001010100010110100011101010100000101011111011101001110101";
for(int n=2;n<=500;n+=2){
cout<<"YES\n";
int x=0;
cout<<x;
for(auto c:pt[n]){
if(c=='1'){
x=x*2%n;
}else{
x=(x*2-1+n)%n;
}
cout<<' '<<x;
}
cout<<endl;
}
#ifdef DEBUGING
if(SPE){
}
#endif
return ;
}
/*
检查文件读写
检查多测清空
检查数组大小
*/
signed main()
{
#define RFILE
// #define MULTITEST
// #define TESTCASEID
#ifdef RFILE
#ifndef CPEDITOR
freopen("hamilton.in","r",stdin);
freopen("hamilton.out","w",stdout);
#endif
#endif
#ifdef MULTITEST
int T=RIN;
#else
int T=1;
#endif
#ifdef TESTCASEID
ID=RIN;
#endif
for(int i=1;i<=T;i++) solve(i==0);
return 0;
}