System.in.eachLine{{x,y->Eval.me"println ${x}g.modPow($y,10)"}it.split()}