x;main(_){ gets(&_); read(0,&x,4); puts( x==0x00000a30|| x==0x00000a31|| x==0x000a3130|| x==0x000a3031|| x==0x0a303130|| x==0x0a313031 ?"NO":"YES" ); return 0; }