Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Main {
- public static void main(String[] args) {
- Scanner s = new Scanner(System.in);
- int n = s.nextInt();
- int count = 0;
- String str;
- s.nextLine();
- for (int i = 0; i < n; i++) {
- str = s.nextLine().toLowerCase();
- for (int j = 0; j < str.length(); j++) {
- if (str.charAt(j) == 't') count++;
- if (str.charAt(j) == 's') count--;
- }
- }
- if (count > 0)
- System.out.println("English");
- else
- System.out.println("French");
- }
- }
Add Comment
Please, Sign In to add comment