enum C{C;System z;int i,j;{try{for(;;z.out.print((i+=i<1%~j?j:ij?-1:0)%16))j=i==j?z.in.read():j;}catch(Exception e){}}}