import java.io.*; import java.lang.*; import java.util.*; import java.math.*; public class Main { static Scanner cin = new Scanner(System.in); public static void main(String[] args) { int r=1,n=cin.nextInt(),x=0; for(int i=0; i