class D{static{int c,i=0,j,k;int[]a=new int[300];for(java.util.Scanner S=new java.util.Scanner(System.in);S.hasNext();)a[i++]=S.nextInt();for(j=0;j