#!/usr/bin/env python3 # # No.1305 Speak of the Devil # import sys, os, math p, q = list(map(float, input().split())) print(min(p, q))