Guest User

Untitled

a guest
Feb 11th, 2019
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Main {
  4.   public static void main(String[] args) {
  5.     Scanner s = new Scanner(System.in);
  6.     int n = s.nextInt();
  7.     int count = 0;
  8.     String str;
  9.     s.nextLine();
  10.     for (int i = 0; i < n; i++) {
  11.       str = s.nextLine().toLowerCase();
  12.       for (int j = 0; j < str.length(); j++) {
  13.         if (str.charAt(j) == 't') count++;
  14.         if (str.charAt(j) == 's') count--;
  15.       }
  16.     }
  17.     if (count > 0)
  18.       System.out.println("English");
  19.     else
  20.       System.out.println("French");
  21.   }
  22. }
Add Comment
Please, Sign In to add comment