Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- // TODO code application logic here
- Scanner input=new Scanner(System.in);
- Scanner scan=new Scanner(System.in);
- int times=input.nextInt();
- String sentences []=new String[times];
- int t=0;
- int s=0;
- for(int x=0;x<times;x++)
- {
- sentences[x]=scan.nextLine();
- }
- for(int x=0;x<times;x++)
- {
- for(int y=0;y<sentences[x].length();x++)
- {
- if(sentences[x].charAt(y)=='t'||sentences[x].charAt(y)=='T')
- {
- t++;
- }
- else if(sentences[x].charAt(y)=='s'||sentences[x].charAt(y)=='S')
- {
- s++;
- }
- }
- }
- if(s>t)
- {
- System.out.println("French");
- }
- else if(t>s)
- {
- System.out.println("English");
- }
- else
- System.out.println("French");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement