import java.util.*; class A{ static Scanner s = new Scanner(System.in); public static void main(String[] args) { int in[] = new int[s.nextInt()]; for(int i=0;i