public class Solution { public static void main(String[] args) throws Exception { //在此编写你的代码 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String a = reader.readLine(); String b = reader.readLine(); if(a.compareTo(b)>=0 ){ System.out.println(b); } else{ System.out.println(a); } if(a == b){ System.out.println(a.equals(b)); } } }