main@m=getLine>>=print.f.map read.words>>m f[x,y]=mod(x^mod y 92)10