for(;scale=a++-500;)if(b=read()*!a%5)if(64%b){"x mod ";b}else print--b,"and x "