m@main=getLine>>=print.f.map read.words>>m f[a,b]=mod(a^mod b 44)10