import java.util.*; public class Test10 { public static void main(String[] args){ Scanner sc=new Scanner(System.in); String line; line=sc.nextLine(); int n=Integer.parseInt(line); int[] cups=new int[n+1]; for(int i=0;i