public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); String one = reader.readLine(); String two = reader.readLine(); int a = Integer.parseInt(one); int b = Integer.parseInt(two); if (a == b) { System.out.println("Имена идентичны");} else if (a.length() == b.length()) { System.out.println("Длины имен равны");} } }