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