public class Test14 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String[] s = sc.nextLine().split(" ");
int[] arr = new int[s.length-1];
int count = Integer.parseInt(s[s