public class Solution {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
       int maximum = 0;
        int N = Integer.parseInt(reader.readLine());


           maximum = N;
            int q = Integer.parseInt(reader.readLine());

            if ((maximum<=q)){
                maximum = q;
            }
   //напишите тут ваш код
       System.out.println(maximum);

    }
}