Neighbours on a Numpad by Klemmbrett

import java.util.*;enum b{b;int i;System s;{for(Scanner c=new Scanner(s.in);(i=c.nextInt())>0;s.out.println(i%2<1?3:i%5>0?2:4));}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page