Почеемуууу????
package com.javarush.task.task07.task0708;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Самая длинная строка
*/
public class Solution {
private static ArrayList<String> strings;
public static void main(String[] args) throws Exception {
strings = new ArrayList<String>();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String max = "";
int count = 1;
for (int i = 0; i < 5; i++){
strings.add(reader.readLine());
}
for (int i = 0; i < strings.size(); i++){
if (strings.get(i).length() > max.length()){
max = strings.get(i);
} else if (strings.get(i).length() == max.length()){
count++;
} else continue;
}
if (count == 1) {
System.out.println(max);
}
else {
for (int i = 0; i < count; i ++){
System.out.println(max);
}
}
}
}