import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { PrintWriter pw=new PrintWriter(System.out); Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] stcst=new int[n]; for(int i=0;i