package com.codegym.task.task04.task0418;
/*
Minimum of two numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
int number1 = Integer.parseInt(a);
int number2 = Integer.parseInt(b);
if (number1 < number2) {
System.out.println(number1);
if (number2 < number1) {
System.out.println(number2);
if (number1 == number2) {
System.out.println(number2);
}
}
}
}
}