import java.util.LinkedList; import java.util.Scanner; public class A000275 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); LinkedList a = new LinkedList<>(); for(int i=0;i