Problem:
 Score: 100 points    Problem Statement  In AtCoder Kingdom, Gregorian calendar is used, and dates are written in the "year-month-day" order, or the "month-day" order without the year. For example, May 3 , 2018 is written as 2018 - 5 - 3 , or 5 - 3 without the year.  In this country, a date is called Takahashi when the month and the day are equal as numbers. For example, 5 - 5 is Takahashi. How many days from 2018 - 1 - 1 through 2018 - a - b are Takahashi?      Constraints   a is an integer between 1 and 12 (inclusive).  b is an integer between 1 and 31 (inclusive).  2018 - a - b is a valid date in Gregorian calendar.         Input  Input is given from Standard Input in the following format:  a  b       Output  Print the number of days from 2018 - 1 - 1 through 2018 - a - b that are Takahashi.        Sample Input 1 5 5      Sample Output 1 5  There are five days that are Takahashi: 1 - 1 , 2 - 2 , 3 - 3 , 4 - 4 and 5 - 5 .       Sample Input 2 2 1      Sample Output 2 1  There is only one day that is Takahashi: 1 - 1 .       Sample Input 3 11 30      Sample Output 3 11  There are eleven days that are Takahashi: 1 - 1 , 2 - 2 , 3 - 3 , 4 - 4 , 5 - 5 , 6 - 6 , 7 - 7 , 8 - 8 , 9 - 9 , 10 - 10 and 11 - 11 .

Solution (Python):
import itertools
def main():
  a,b = map(int,input().split())
  mm = a
  if a > b:
    mm -=1
  print(mm)
if __name__ == '__main__':
  main()

Solution (Python):
a, b = map(int,input().split())
if a <= b: print(a)
else: print(a - 1)

Solution (Python):
a, b = map(int, input().split())
if b < a:
  print(a-1)
else:
  print(a)

Solution (Python):
a,b = map(int,input().split(" "))
count = 0
if b < a:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b = map(int,input().split())
print(a - (a > b))

Solution (Python):
a,b = map(int,input().split())
if a <= b:
  print(a)
else:
  print(a-1)

Solution (Python):
a, b = map(int, input().split())
ans = a if a <= b else a - 1
print(ans)

Solution (Python):
A,B=map(int,input().split())
if A>B:
    print(A-1)
else:
    print(A)

Solution (Python):
a, b = map(int,input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())

def main():
    ans = a if b >= a else a - 1
    print(ans)

if __name__ ==  '__main__':
    main()

Solution (Python):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [int(i) for i in input().split()]

    if a[0] <= a[1]:
        print(a[0])
    else:
        print(a[0]-1)

Solution (Python):
a, b = map(int, input().split())
ans = a
if a > b:
  ans -= 1
print(ans)

Solution (Python):
a,b = map(int,input().split())
print(a if a<=b else a-1)

Solution (Python):
a, b = map(int, input().split())
if (a <= b):
    print(a)
else:
    print(a-1)

Solution (Python):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))
a,b = iim()

if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b = map(int,input().split())
 
if b >= a:
	print(a)
else:
	print(a - 1)

Solution (Python):

def inputlist(): return [int(j) for j in input().split()]
from collections import Counter


a,b = inputlist()
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
print(a) if a <= b else print(a-1)

Solution (Python):
a,b = map(int,input().split())
if a<=b :print(a)
else:print(a-1)

Solution (Python):
a, b = map(int, input().split())
print(a - 1 if a > b else a)

Solution (Python):
a, b = map(int, input().split())
 
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b= map(int,input().split())
if b>=a:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b = map(int,input().split())

if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b = map(int,input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())

if a <= b:
    print(a)
else:
    print(a - 1)

Solution (Python):
a,b=map(int,input().split())
if a>b:
  print(a-1)
else:
  print(a)

Solution (Python):
def DayofTaka(a , b):

    return a if a <= b else a - 1

def main():
    a , b = map(int , input().split())
    print(DayofTaka(a , b))

if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())
if a>b:
  print(a-1)
else:
  print(a)

Solution (Python):
a, b = map(int, input().split())
if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
def main():
    a,b = map(int, input().split())

    if b<a:
        print(a-1)
    else:
        print(a)


if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
tmp = a
if b >= a:
  print(tmp)
else:
  print(tmp - 1)

Solution (Python):
import sys
import os

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B = list(map(int, sys.stdin.buffer.readline().split()))
    print(A if A <= B else A-1)


if __name__ == '__main__':
    main()

Solution (Python):
a, b = list(map(int, input().split()))
print(a if a <= b else a - 1)

Solution (Python):
a,b = map(int,input().split())
if a>b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b=map(int,input().split())
if 13<=b:
    print(a)
else:
    if a<=b:
        print(a)
    else:
        print(a-1)

Solution (Python):
a,b=map(int, input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, b = list(map(int, sys.stdin.buffer.readline().split()))
    print((a-1)+int(a<=b))


if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())

if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
def main():
    a, b = map(int, input().split())

    if b < a:
        ans = a - 1
    else:
        ans = a

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
a,b = map(int,input().split())
if a>b:print(a-1)
else:print(a)

Solution (Python):
a, b = map(int, input().split())
print(a-1 if a > b else a)

Solution (Python):
a, b = map(int, input().split())
ans = 0

for i in range(1, a+1):
  day = b if i == a else 31
  for j in range(1, day+1):
    if i == j:
      ans += 1

print(ans)

Solution (Python):
a, b = map(int, input().split())

print((a - 1) + (b >= a))

Solution (Python):
l = [int(x) for x in input().split(" ")]
print(int(l[0]-1+min(l[1]/l[0],1)))

Solution (Python):

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

Solution (Python):
a,b = map(int,input().split())
print(a-1) if a>b else print(a)

Solution (Python):
a,b=map(int,input().split())

print(a if a<=b else a-1)

Solution (Python):
a,b= map(int, input().split())

if a<=b:
        print(a)
else:
        print(a-1)

Solution (Python):
a,b=map(int,input().split())
if b>=a:
  print(a)
else:
  print(a-1)

Solution (Python):

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

if a <= b:
    ans = a
else:
    ans = a-1

print(ans)

Solution (Python):
a, b = map(int, input().split())

if a <= b:
    print(a)
else:
    print(a - 1)

Solution (Python):
a,b = map(int, input().split())
if(a <= b):print(a)
else: print(a-1)

Solution (Python):
a, b= map(int, input().split())
print(a if b >= a else a-1)

Solution (Python):
a, b = map(int, input().split())
if a < b:
  print(a)
else:
  print(max(a-1,b))

Solution (Python):
a,b=map(int,input().split())
if b>=a:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b = map(int, input().split())

before = a - 1
now = 0
if a <= b:
  now = 1
  
print(before + now)

Solution (Python):
a,b=map(int,input().split())
if(a>b):a-=1
print(a)

Solution (Python):
a, b = map(int, input().split())

ans = a-1
if a <= b:
    ans += 1

print(ans)

Solution (Python):
a, b = [int(i) for i in input().split()]

ans = 0
ans += a - 1
if b >= a:
    ans += 1
print(ans)

Solution (Python):
m, d = map(int, input().split())
if m > d:
  print(m-1)
else:
  print(m)

Solution (Python):
a,b = map(int, input().split())
if(a <= b):
    print(a)
else:
    print(a-1)

Solution (Python):

a,b=map(int,input().split())
ans=a
if b<a:
    ans-=1
print(ans)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
    print(a)
else:
    print(a - 1)

Solution (Python):
A,B=map(int,input().split())

if B>=A:
  print(A)
else:
  print(A-1)

Solution (Python):
A, B = map(int, input().split())

if A<=B:
  print(A)
else:
  print(A-1)

Solution (Python):
a, b = map(int, input().split())

ans = a
if a > b:
    ans -= 1
print(ans)

Solution (Python):
a,b=map(int,input().split())

if (a<=b):
    print(a)
elif (a>b):
    print(a-1)

Solution (Python):
a,b = map(int,input().split())

if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b = map(int,input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b = map(int,input().split())
if b<a:
  a-=1
print(a)

Solution (Python):
a,b = map(int, input().split())
print(a-1 if a>b else a)

Solution (Python):
a,b=map(int,input().split())
if b>=a:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b=map(int,input().split())
print(a if a<=b else a-1)

Solution (Python):

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

Solution (Python):


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

if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b=map(int,input().split())
print(a if a<=b else a-1)

Solution (Python):
A,B=map(int,input().split(' '))
if A <=B:
    print(A)
else:
    print(A-1)

Solution (Python):
a,b = [int(x) for x in input().split()]

if b >= a:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b=map(int,input().split())
if b < a:
  a -= 1
print(a)

Solution (Python):
a,b = map(int,input().split())

if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
A,B=map(int,input().split())
if A>B:
	print(A-1)
else:
	print(A)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b = map(int,input().split())
print(a if a <= b else a-1)

Solution (Python):
a,b = map(int, input().split())
if a > b:
  print(a - 1)
else:
  print(a)

Solution (Python):
a, b = map(int, input().split())
if a>b:
    print(a-1)
else:
    print(a)

Solution (Python):
a, b = [int(i) for i in input().split()]
print(a if a <= b else a-1)

Solution (Python):
a, b = map(int, input().split())

if a <= b: print(a)
else: print(a-1)

Solution (Python):
a, b = map(int, input().split())

ans = a
if a > b: ans -= 1
print(ans)

Solution (Python):
a,b=map(int,input().split())
print(a-1 if a>b else a)

Solution (Python):

a,b=map(int,input().split())
print(a-1 if a>b else a)

Solution (Python):
a,b = map(int,input().split())
print(a - (b < a))

Solution (Python):
a, b = map(int, input().split())
ans = 0

if a == b or a < b:
    ans += 1

for i in range(1, a):
    ans += 1

print(ans)

Solution (Python):

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

if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):


a,b = [int(i) for i in input().rstrip().split()]


print( (a-1)+1 if b>=a else (a-1) )

Solution (Python):
m=[31,28,31,30,31,30,31,31,30,31,30,31]
a,b=map(int,input().split())
ans=0
for month in range(a):
  for day in range(m[month]):
    if month==a-1 and day+1>b:
      break
    if month==day:
      ans+=1
print(ans)

Solution (Python):
a, b = map(int, input().split())

if a <= b:
    print(a)

else:
    print(a-1)

Solution (Python):
a, b = (int(_) for _ in input().split())
if a <= b:
  print(a)
else:
  print(a - 1)

Solution (Python):
a, b = map(int, input().split())
r = a-1
if b-a>=0:
    r+=1
print(r)

Solution (Python):
a,b = map(int,input().split())

num = a

if a > b:
  num -=1
  
  
print(num)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())

if b >= a:
    print(a)
elif a > b:
    print(a-1)
else:
    print(b)

Solution (Python):
a, b = map(int, input().split())
if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b=map(int,input().split())
print(a-1 if a>b else a)

Solution (Python):
a, b = map(int, input().split())
if a > b :
    print(a-1)
else :
    print(a)

Solution (Python):
a,b=map(int,input().split())

if a>b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b=map(int,raw_input().split())
if a<=b:
  print a
else:
  print a-1

Solution (Python):
x, y = map(int,raw_input().split())
if y >= x:
    print x
elif y < x:
    print x-1

Solution (Python):
a,b = map(int,input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())

if (a <= b):
	print(a)
else:
	print(a - 1)

Solution (Python):
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda x: [na() for _ in range(x)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda x: [ns() for _ in range(x)]
nas = lambda: stdin.readline().split()

a, b = na()

if b < a:
    print(a - 1)
else:
    print(a)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
A, B = map(int,input().split())
if A <= B:
  print(A)
else:
  print(A-1)

Solution (Python):
a,b = map(int,input().split())

if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b = map(int, input().split())
print(a if a <= b else a - 1)

Solution (Python):
A, B = map(int, input().split())

if A <= B:
  print(A)
else:
  print(A-1)

Solution (Python):
a,b=map(int,input().split())
if a>b:
    print(a-1)
else:
    print(a)

Solution (Python):
A, B = map(int,input().split())

if A <= B:
  print(A)
else:
  print(A-1)

Solution (Python):
a,b=map(int,input().split())
ans=a-1
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a, b = map(int,input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
def readints():
    return list(map(int, input().split()))


a, b = map(int, input().split())
if a == b:
    print(a)
    exit()
if a > b:
    print(a-1)
if a < b:
    print(a)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
print(a - (a>b))

Solution (Python):
a, b = map(int, input().split())

if a <= b:
	print(a)
else:
	print(a - 1)

Solution (Python):
a,b=list(map(int,input().split()))
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a, b = list(map(int, input().split()))
print(a) if a <= b else print(a-1)

Solution (Python):
import bisect
import cmath
import heapq
import itertools
import math
import operator
import os
import random
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter, mul, add, xor

import numpy as np

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7


from datetime import datetime, timedelta

a, b = list(map(int, sys.stdin.buffer.readline().split()))
dt = datetime(2018, 1, 1)
until = datetime(2018, a, b)
cnt = 0
while dt <= until:
    if dt.month == dt.day:
        cnt += 1
    dt += timedelta(days=1)
print(cnt)

Solution (Python):
a,b = map(int,input().split())
print(a-1*(a>b))

Solution (Python):
a, b = map(int, input().split())

if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b = map(int,input().split())
print(a-1 + 1*(a<=b))

Solution (Python):
a,b=map(int,input().split())
print(a-1 if a>b else a)

Solution (Python):
a, b = [int(i) for i in input().split()]

if a <= b:
    print(a)
else :
    print(a-1)

Solution (Python):
a,b=map(int,input().split())

if b>=a:
    print(a)
else:
    print(a-1)

Solution (Python):
def main():
    month, day = map(int, input().split(" "))
    if month > day:
        month -= 1
    print(month)


if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int, input().split())
if a>b: print(a-1)
else: print(a)

Solution (Python):
a,b=map(int,input().split())
print(a if a<=b else a-1)

Solution (Python):
a, b = map(int, input().split())
print(a - (a > b))

Solution (Python):
a,b = map(int,input().split())
if a > b:
    print(a - 1)
else:
    print(a)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
  print(a)
else:
  print(a - 1)

Solution (Python):
a,b = map(int, input().split())
print(a if a <= b else a-1)

Solution (Python):
a, b = map(int, input().split())
for i in range(1, 13):
    if (a == i and i <= b) or (a == i+1 and b <= i):
        print(i)

Solution (Python):
a,b = map(int,input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b = map(int, input().split())
if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b = map(int, input().split())

if a<=b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b = map(int,input().split())
print(a - (a > b))

Solution (Python):
a,b=map(int,input().split())
if a>b :
  print(a-1)
else :
  print(a)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):


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

a_list = [i for i in range(1,a+1)]
b_list = [i for i in range(1,b+1)]


a_len = len(a_list)
b_len = len(b_list)


if a_len < b_len:
    print(a_len)
elif a_len == b_len:
    print(a_len)
elif a_len>b_len:
    ans = a_len-1
    print(ans)

Solution (Python):
a,b=map(int,input().split())
if a<=b:print(a)
else:print(a-1)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a, b = map(int, input().split())

if a <= b:
  print(a)
else:
  print(a - 1)

Solution (Python):
a, b = map(int, input().split())
print(a-(a>b))

Solution (Python):
a, b = list(map(int, input().split()))
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b=map(int,input().split());print(a if a <= b else a-1)

Solution (Python):
a,b=map(int,input().split())
print(a if b>=a else a-1)

Solution (Python):
a, b = map(int,input().split())
if a > b:
    print(a - 1)
else:
    print(a)

Solution (Python):
a,b = map(int, input().split())
count = 0

if a <= b:
    count = a
else:
    count = a-1

print(count)

Solution (Python):




def main():
    A, B = map(int, input().split())
    print(A if A <= B else A - 1)


if __name__ == "__main__":
    main()

Solution (Python):
a,b=map(int,input().split())

if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b=map(int,input().split())
if b>=a:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a > b: print(a - 1)
else: print(a)

Solution (Python):
a,b = map(int,input().split())
print(a-(a>b))

Solution (Python):
a,b = map(int, input().split())
print(a if b>=a else a-1)

Solution (Python):













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

print(a-(a > b))

Solution (Python):
a,b = map(int,input().split())
ans = 0
ans = a
if a<=b:
    print(ans)
else:
    print(ans-1)

Solution (Python):
arr = input().split()
arr = list(map(int,arr))

a = arr[0]
b = arr[1]

if b < a:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b = map(int,input().split())
if a <= b:
    print(a)
elif a > b:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a<=b:
    print(a)
else :
    print(a-1)

Solution (Python):
a,b=map(int,input().split())

if a>b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b=map(int,input().split())
if a>b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b = map(int,input().split())
if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
A,B=map(int,input().split())
if A <= B:
  print(A)
else:
  print(A-1)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b=map(int,input().split())

if a > b:
    a -= 1
print(a)

Solution (Python):

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
a,b = map(int,input().split())
print(a if a<=b else a-1)

Solution (Python):
a, b = map(int, input().split())

ans = a - 1

print(ans+1 if a <= b else ans)

Solution (Python):
month, day = map(int, input().split())
print(month-1 if month>day else month)

Solution (Python):
month, day = map(int, input().split())
print(month if month<=day else month-1)

Solution (Python):
a,b=map(int,input().split())
print(a+(a<=b)-1)

Solution (Python):
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a, b = map(int, readline().split())

print(a if a <= b else a - 1)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
	print(a)
else:
	print(a-1)

Solution (Python):
a,b=map(int,input().split())

if b >=a:
    print(a)
else:
    print(a-1)

Solution (Python):
A, B = map(int, input().split())
ans = A - 1 + (1 if B >= A else 0)
print(ans)

Solution (Python):
a, b = map(int, input().split())

if a > b:
  print(a-1)
else:
  print(a)

Solution (Python):
a, b = map(int, input().split())

if a > b:
  print(a - 1)
else:
  print(a)

Solution (Python):
a,b=map(int,input().split())
if a>b:
  print(a-1)
else:
  print(a)

Solution (Python):
month, day = map(int, input().split())

ans = month-1 if month > day else month

print(ans)

Solution (Python):
a, b = map(int, input().split())
print(a if a <= b else a-1)

Solution (Python):
a, b = map(int, input().split())

if b >= a:
    print(a)
else:
    print(a - 1)

Solution (Python):
a, b=map(int,input().split())
if  a <= b :
	print(a)
else:
	print(a-1)

Solution (Python):
a, b = map(int, input().split())

if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b= map(int,input().split())
print(a if a<=b else a-1)

Solution (Python):
a, b = map(int,input().split())
print(a-1 if a>b else a)

Solution (Python):
def main():
    from sys import stdin, setrecursionlimit
    setrecursionlimit(10**6)
    r = stdin.readline()[:-1]
    
    
    

    res = 0
    a, b = map(int, r.split())
    if a > b:
        print(a-1)
    else:
        print(a)

if __name__ == '__main__':
    main()

Solution (Python):
a, b=map(int, input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
a, b = map(int, input().split())
print(a-1 if b < a else a)

Solution (Python):
a, b = (int(i) for i in input().split())
if b >= a:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b=map(int, input().split())
print(a-1+(a<=b))

Solution (Python):
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def my_round(a,dig=0):
    p = 10 ** dig
    return (a * p * 2 + 1) // 2 / p

def gcd(a,b): 
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def lcm(a,b): 
    return a/gcd(a,b)*b

def divisors(a): 
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): 
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): 
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

def prime_fact(a): 
    sqrt = math.sqrt(a)
    res = []
    i = 2
    if is_prime(a):
        res.append(a)
    else:
        while a!=1:
            while a%i==0:
                res.append(i)
                a //= i
            i += 1
    return res

def main():
    a,b = map(int,input().split())
    ans = 0
    if a <= b:
        ans += a
    else:
        ans += a - 1
    print(ans)
    return

if __name__=='__main__':
    main()

Solution (Python):

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

if a>b:
  print(a-1)
else:
  print(a)

Solution (Python):
a, b = map(int, input().split())

num = 0
for i in range(12):
    if i < a:
        num += 1
if a > b:
    num -= 1

print(num)

Solution (Python):

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

Solution (Python):

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

if b>=a:
    print(a)
else:
    print(a-1)

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

ans = 0
ans += a - 1

if a <= b:
    ans += 1

print(ans)

Solution (Python):
a, b = map(int, input().split())
print(a) if(a <= b) else print(a - 1)

Solution (Python):
a,b=map(int,input().split())
print(a if a<=b else a-1)

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

if a>b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b = map(int, input().split())

count = 0
for i in range(1,a+1):
    if int(str(i)+str(i)) <= int(str(a)+str(b)):
        count += 1

print(count)

Solution (Python):
a, b = map(int, input().split())

if b >= a:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a > b:
  r = a - 1
else:
  r = a

print(int(r))

Solution (Python):
num = input().split()
num_i = [int(s) for s in num]

if(num_i[1] >= num_i[0]):
    print(num_i[0])
else:
    print(num_i[0]-1)

Solution (Python):
a, b = map(int, input().split())

print(a if a <= b else a-1)

Solution (Python):
a, b = map(int, input().split())

if a <= b:
    print(a)
else:
    print(a - 1)

Solution (Python):
a,b=map(int,input().split())
if b>=a:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b = map(int,input().split())

if a <= b:
    print(a)
else:
    print(a - 1)

Solution (Python):
a,b = map(int,input().split())
if a<=b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a >b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b=map(int, input().split())

print(a-1 if a>b else a)

Solution (Python):
a, b = map(int,input().split())

if a <= b:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b=map(int,input().split())

if a>b:
  print(a-1)
else:
  print(a)

Solution (Python):
a,b = map(int, input().split())
print(a - (1 if b < a else 0))

Solution (Python):
a,b=map(int,input().split())
print(a-1 if a>b else a)

Solution (Python):
import sys
input = sys.stdin.readline
a,b = [int(i) for i in input().split()]
if b >= a :
    print(a)
else :
    print(a-1)

Solution (Python):
a,b=map(int,input().split())
ans=a-1
if a<=b:
  ans+=1
print(ans)

Solution (Python):
import sys
input = sys.stdin.readline
a, b = map(int,input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
print(a if a <= b else a-1)

Solution (Python):
import sys
input = sys.stdin.readline
a,b=map(int,input().split())
if b>=a:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b=map(int,input().split())
if a<=b:print(a)
else:print(a-1)

Solution (Python):
a,b = map(int,input().split())

if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
m,d=map(int,input().split())
if d>=m:
  print(m)
else:
  print(m-1)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
  print(a)
else:
  print(a-1)

Solution (Python):
a, b = map(lambda x: int(x), input().split())

num = a-1

if b >= a:
  num += 1

print(num)

Solution (Python):
import sys
input = sys.stdin.readline
a, b = [int(x) for x in input().split()]
if b >= a:
    print(a)
else:
    print(a - 1)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b=map(int,input().split())
if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
a,b=map(int,input().split())
if b>=a:
  print(a)
else:
  print(a-1)

Solution (Python):
a,b  = map(int, input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())

count = 0
for i in range(1, a):
   count += 1
if (b >= a):
   print(count + 1)
else:
   print(count)

Solution (Python):
a, b = map(int, input().split())

if a>b:
    print(a-1)
else:
    print(a)

Solution (Python):
a, b = map(int, input().split())
if b >= a:
    ans = a
else:
    ans = a-1
print(ans)

Solution (Python):
a,b = map(int,input().split())
if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):

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

if a > b:
    print(a-1)
else:
    print(a)

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

ans = a - 1

if b >= a:
    ans += 1

print(ans)

Solution (Python):
a,b=map(int,input().split())
print(a if a<=b else a-1)

Solution (Python):
a, b = map(int, input().split())
print(a-1+(a<=b))

Solution (Python):
A, B = [int(i) for i in input().split()]
print(A if B >= A else A-1)

Solution (Python):
a, b = map(int, input().split())

if a > b:
    ans = a - 1
else:
    ans = a

print(ans)

Solution (Python):
a,b=map(int,input().split())
print(a-1 if a>b else a)

Solution (Python):
a,b = map(int,input().split())

ans = a-1 if a > b else a
print(ans)

Solution (Python):
a,b = map(int,input().split())
if a > b:
    print(a-1)
else:
    print(a)

Solution (Python):
import sys
A,B = map(int, input().split())

count = 0
for a in range(1,13,1):
    if a>A:
        break
    for b in range(1,32,1):
        if a==A and b > B:
            print(count)
            sys.exit()
        if a==b:
            count = count + 1

print(count)

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())

def main():
    return a if b >= a else a - 1

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split(" "))

print(a if a <= b else a - 1)

Solution (Python):
a,b = map(int, input().split())
print(a if a<=b else a-1)

Solution (Python):
a, b = map(int, input().split())
if b < a:
    print(a-1)
else:
    print(a)

Solution (Python):
a, b = map(int, input().split())
if a > b:
    print(a - 1)
else:
    print(a)

Solution (Python):


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

if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = map(int, input().split())
print(a-1 if b < a else a)

Solution (Python):
a,b=map(int,input().split())
if a<=b:
  print(a)
else:
  print(a-1)

Solution (Python):
A, B = map(int, input().split())

if A <= B:
    print(A)
else:
    print(A - 1)

Solution (Python):
a,b = map(int,input().split())

if a <= b:
    print(a)
else:
    print(a-1)

Solution (Python):
a,b=map(int,input().split())
if a>b:
  print(a-1)
else:
  print(a)

Solution (Python):
a,b = map(int, input().split())
if a<=b :
    print(a)
else :
    print(a-1)

Solution (Python):
a, b = list(map(int, input().split()))
if a <= b:
    y = a
else:
    y = a - 1
print(y)