a, b = list(map(int, input().split()))

out = a if a<=b else a-1

print(out)
def main():

    a, b = list(map(int, input().split()))

    print((a-(a>b)))

    

if __name__ == "__main__":

    main()
a, b = list(map(int, input().split()))
out = a if a <= b else a - 1
print(out)

def main():
    a, b = list(map(int, input().split()))
    print((a - (a > b)))


if __name__ == "__main__":
    main()

-a, b = list(map(int, input().split())) -out = a if a <= b else a - 1 -print(out) +def main(): +    a, b = list(map(int, input().split())) +    print((a - (a > b))) + + +if __name__ == "__main__": +    main()