o=[n='\n'] ("$System.in"-'ooo'-n)[-1..0].each{c->o.sum{o+=c+it}} o.any''.&print