#!/usr/bin/env python3 s, k = map(int,input().split()) print(min(s, k))