#!/usr/bin/env python3 s, k = map(int,input().split()) if s <= k: print(s) else: assert False