package com.javarush.task.task15.task1515;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/*
Статики-2
*/

public class Solution {
    public static int A;
    public static int B;

    public static final int MIN = min(A, B);

    public static void main(String[] args) {

    static {

        try {

            BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

            String str = input.readLine();
            A = Integer.parseInt(str);
            B = Integer.parseInt(str);
            input.close();
        }
        catch (IOException ex) {}
    }

    System.out.println(MIN);

}

    public static int min(int a, int b) {
        return a < b ? a : b;
    }
}