public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int tests = sc.nextInt();
		String[] input = new String[tests];
		for(int i = 0 ;i<tests;i++){
			input[i] = sc.next();
		}
		solve(input);
		sc.close();
	}