Detail instraction can be found here.
Compile with javac Solution.java
and run with java Solution
.
import java.util.*;
import java.io.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if (n == 2)
System.out.println(2);
else
System.out.println(1);
}
}
This is only for discussion and communication. Please don't use this for submission of assignments.