fork(1) download
  1. importPackage(java.io);
  2. importPackage(java.lang);
  3.  
  4. var br = new BufferedReader( new InputStreamReader(System['in']) );
  5. var x = Long.parseLong(br.readLine());
  6.  
  7. var mod = x % 6;
  8.  
  9. switch (mod) {
  10. case 0:
  11. case 1:
  12. case 3:
  13. System.out.println( "yes" );
  14. break;
  15. default:
  16. System.out.println( "no" );
  17. }
  18.  
Success #stdin #stdout 0.42s 382976KB
stdin
3
stdout
yes