Advertisement
ArtemisL

F1 in LOSH 2016

Jul 30th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         Scanner sc = new Scanner(System.in);
  6.  
  7.         int a = sc.nextInt();
  8.         if (a%3==0){
  9.             System.out.println("2");
  10.         } else {
  11.             System.out.println("1");
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement