import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scan = new Scanner(System.in)) { String a = scan.next(); String b = scan.next(); if(a.length() == b.length() ) { for(int i=0; i chB? a:b); } break; } } } else if(a.length() > b.length()) { System.out.println(a); } else { System.out.println(b); } } } }