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
//REad input from the keyboard
BufferedReader bfr = new BufferedReader(new InputStreamReader(System.in));
String num1 = bfr.readLine();
String num2 = bfr.readLine();
int a = Integer.parseInt(num1);
int b = Integer.parseInt(num2);
findMininum(a, b);
}
public static void findMininum (int a, int b) {
if (a < b)
System.out.println(a);
else
if (a == b)
System.out.println(a + " " + b);
else
System.out.println(b);
}
}