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