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):
a,b=map(int, input().split())
if a==1:
    print(1)
elif a==2 and b<=1:
    print(1)
elif a==2 and b>=2:
    print(2)
elif a==3 and b<=2:
    print(2)
elif a==3 and b>=3:
    print(3)
elif a==4 and b<=3:
    print(3)
elif a==4 and b>=4:
    print(4)
elif a==5 and b<=4:
    print(4)
elif a==5 and b>=5:
    print(5)
elif a==6 and b<=5:
    print(5)
elif a==6 and b>=6:
    print(6)
elif a==7 and b<=6:
    print(6)
elif a==7 and b>=7:
    print(7)
elif a==8 and b<=7:
    print(7)
elif a==8 and b>=8:
    print(8)
elif a==9 and b<=8:
    print(8)
elif a==9 and b>=9:
    print(9)
elif a==10 and b<=9:
    print(9)
elif a==10 and b>=10:
    print(10)
elif a==11 and b<=10:
    print(10)
elif a==11 and b>=11:
    print(11)
elif a==12 and b<=11:
    print(11)
else:
    print(12)

Solution (Python):


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

ans = 0
ans += a-1
if b >= a:
    ans += 1

print(ans)

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

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

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

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

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

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 > 12:
    print(a)
else:
    if a > b:
        print(a-1)
    else:
        print(a)

Solution (Python):



month, date = map(int, input().split())

if date >= month:
	print(month)
else:
	print(month - 1)

Solution (Python):
import math
import random
import heapq
from collections import Counter, defaultdict
from decimal import Decimal, ROUND_HALF_UP, ROUND_CEILING
from functools import lru_cache, reduce
from itertools import combinations_with_replacement, product, combinations


def read_int():
    return int(input())


def read_int_n():
    return list(map(int, input().split()))


def read_float():
    return float(input())


def read_float_n():
    return list(map(float, input().split()))


def read_str():
    return input()


def read_str_n():
    return list(map(str, input().split()))


def mt(f):
    import time
    import sys

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        print(e - s, 'sec', file=sys.stderr)
        return ret

    return wrap


@mt
def slv(a, b):

    c = a - 1

    if b >= a:
        c += 1
    return c


def main():
    a, b = read_int_n()
    print(slv(a, b))


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
import datetime
a, b = map(int, input().split(' '))
start = datetime.date(2018, 1, 1).toordinal()
end = datetime.date(2018, a, b).toordinal()

def checker(num):
    check_day = datetime.date(2018, num, num).toordinal()
    if start <= check_day <= end:
        return True
    else:
        return False

print(list(map(checker, [i for i in range (1, 13)])).count(True))

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):
t,h=map(int,input().split())
a=t
if t>h:
	a=a-1
print(a)

Solution (Python):
A,B=input().split()
a=int(A);b=int(B)
if b-a>=0:
	print(a)
else:
	print(a-1)

Solution (Python):
import itertools

def num_days(month):
    if month == 2:
        return 28
    elif month in [4, 6, 9, 11]:
        return 30
    else:
        return 31

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

num_takahashi = 0

for i, j in itertools.product(range(1, a), range(1, num_days(a))):
    if i == j:
        num_takahashi += 1

for d in range(1, b + 1):
    if a == d:
        num_takahashi += 1

print(num_takahashi)

Solution (Python):

arr = list(map(int, input().split()))
if (arr[0] <= arr[1]):
    print(arr[0])
else:
    print(arr[0]-1)

Solution (Python):
import calendar as cal

i = input().split(' ')
a = int(i[0])
b = int(i[1])

year = 2018
n = 0

for month in range(1,a+1):
    for date in [item for subl in cal.monthcalendar(year, month) for item in subl]:
        if date == 0:
            continue
        if month == date:
            n = n+1
        if month >= a and date >= b:
            break

print(n)

Solution (Python):

if __name__ == "__main__":
    a, b = list(map(int, input().split()))
    ans = a - 1
    if a <= b:
        ans += 1
    print(ans)

Solution (Python):
import math
import itertools
from heapq import heapify, heappop, heappush
from sys import stdin, stdout, setrecursionlimit
from bisect import bisect, bisect_left, bisect_right
from collections import defaultdict, deque








def LM(t, r): return list(map(t, r))
def R(): return stdin.readline()
def RS(): return R().split()
def I(): return int(R())
def F(): return float(R())
def LI(): return LM(int,RS())
def LF(): return LM(float,RS())
def ONE_SL(): return list(input())
def ONE_IL(): return LM(int, ONE_SL())
def ALL_IL(): return LM(int,stdin)


def ap(f): return f.append
def pll(li): print('\n'.join(LM(str,li)))
def pljoin(li, s): print(s.join(li))




def main():
	m,d = LI()
	print(m if m <= d  else m-1)

if __name__ == '__main__':
  main()

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

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

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

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

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

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

print(ans)

Solution (Python):


a,b = list(map(int,raw_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):
if __name__ == '__main__':
	a, b = map(int, input().split())
	if a<=b:
		print(a)
	else:
		print(a-1)

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










main(input())

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)
elif a > b:
	print(a - 1)
else:
	print(a)

Solution (Python):
inp=input().split()
a,b=int(inp[0]),int(inp[1])

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

Solution (Python):
x = list(map(int,input().split()))
a = x[0]
b = x[1]
y = a - 1
if b >= a:
    y += 1
print(y)

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

Solution (Python):

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


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

Solution (Python):
a,b = map(int,raw_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 = input().split(" ")

if int(b)//int(a) > 0:
    day = int(a)
else:
    day = int(a)-1

print(day)

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

for x in range(1,13):
    if a==x and b<x:
        print(x-1)
    if a==x and b>=x:
        print(x)

Solution (Python):
a, b=(int(w) for w in 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, raw_input().split())
if b >= a:
    print a
else:
    print a - 1

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

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

Solution (Python):
a , b = input().split()
a = int(a)
b = int(b)
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 b >= a:
    c = 0
else:
    c = -1

print (a + c)

Solution (Python):
a, b = (input().split(" "))
a = int(a)
b = int(b)
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:
    print(a)
else:
    print(a-1)

Solution (Python):
a, b = input().split()
a = int(a)
b = int(b)
ans = 0
for i in range(1, a + 1):
    c = 0
    if i == a:
        c = b + 1
    else:
        c = 13
    for j in range(1, c):
        if i == j:
            ans += 1
print(ans)

Solution (Python):
Tmp = []
Tmp = input().rstrip().split(' ')
 
M = int(Tmp[0])
N = int(Tmp[1])
 
if M<=N:
    print(M)
else:
    print(M-1)

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()

a,b = na()
if b >= a:
    ans = a
else:
    ans = a-1

print(ans)

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)
else:
	print(a-1)

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

Solution (Python):
a,b=[int(x) for x in 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 = list(map(int,input().split())) 
if a > b:                            
    print(a - 1)                     
else:                                
    print(a)

Solution (Python):
num = list(map(int,input().split()))
result = num[0]
if(num[1] < num[0]):
    result -= 1
print(result)

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 b < a: print(a-1)
else: print(a)

Solution (Python):
from sys import stdin


def main():
    a, b = [int(x) for x in stdin.readline().rstrip().split()]
    count = 0
    for i in range(1, 13):
        if i < a:
            count += 1
        elif i == a:
            if i <= b:
                count += 1
        else:
            break
    print(count)


if __name__ == '__main__':
    main()

Solution (Python):

"""
Created on Sat May  5 20:55:26 2018
ABC096-1
@author: maezawa
"""

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

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

print(cnt)

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

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

Solution (Python):





if __name__ == '__main__':
    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 - 1)
else:
    print(a)

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

takahashi = a 

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

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(str(a-1+(1 if a<=b else 0)))

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(b>=a):
    ans += 1
print(ans)

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

    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):
days = input()
days = days.rstrip().split(" ")
thuki = int(days[0])
hi = int(days[1])


if thuki<=hi:
    print(thuki)
elif thuki>hi:
    print(thuki-1)

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

Solution (Python):
import sys

for l in sys.stdin:
  items = [int(x) for x in l.split(' ')]
  a = items[0]
  b = items[1]
  if a <= b:
    print a
  else:
    print a - 1

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

Solution (Python):
import sys,collections,math;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

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

Solution (Python):

import math
import sys
import itertools
import numpy as np

month,day = map(int, input().split())

if month > day :
    print(month-1)
else:
    print(month)

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

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

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

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

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

Solution (Python):

def inpl(): return map(int, input().split())
a, b = inpl()
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())
out = a if a <= b else a-1
print(out)

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()))

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

print(takahashi_count)

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

Solution (Python):
d = list(map(int,input().split()))
if d[0] >=d[1]:
  if d[1] == d[0]:
    print(d[0])
  else:
    print(d[0]-1)
else:
  print(d[0])

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

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

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()))

if b<a:
    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 = (int(i) for i in input().split())  

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

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

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

Solution (Python):
a,b = list(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)
else:
    print(a-1)

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

Solution (Python):
x = list(map(int, input().split()))
if x[0]<=x[1]:
    print(x[0])
else:
    print(x[0]-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())
ans = a
if a>b:
    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())
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 b < a:
    a -=1
print(a)

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-1)
else:
    print(a)

Solution (Python):
l = map(int, raw_input().split())
a = l[0]
b = l[1]

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()))

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

Solution (Python):


i = input().split(" ")
a = int(i[0])
b = int(i[1])

output = 1

if b >= a:
    output += (a - 1)
else:
    output += (a - 1 - 1)

print(output)

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):
month, day = map(int, input().split())
if month > day:
    print(month-1)
else:
    print(month)

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)
elif 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())
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):
import sys
sys.setrecursionlimit(10000)

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

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

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

print(takahashi)

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 a <= b:
        ans = a
    else:
        ans = a - 1

    print(ans)


if __name__ == '__main__':
    main()

Solution (Python):
if __name__ == '__main__':
    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()]
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

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

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

print(c)

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

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

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

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

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

Solution (Python):
import re
inp = input()
inp = re.split(" ",inp)

a = int(inp[0])
b = int(inp[1])

ans = a

if a > b :
    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):
def abc096_a():
    a, b = map(int, input().split())

    return (a - 1) + [0, 1][a <= b]


print(abc096_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 print(a)

Solution (Python):
a, b = list(map(int, input().split()))
print(a) if a <= b 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 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())

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

Solution (Python):



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




m = a - 1
n = 1 if b >= a else 0

print(str(m + n))

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

sum = 0

sum += a - 1

if b >= a:
    sum += 1

print(sum)

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

result = a - 1

if a <= b:
    print(result + 1)
else:
    print(result)

Solution (Python):
a,b = (int(i) for i in 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)
elif a<=b:
    print(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())
print(a if b>=a else (a-1))

Solution (Python):


m, d = map(int, raw_input().split())





if d >= m:
    print m
else:
    print m-1

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

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(' '))
if a <= b:
    print(a)
else:
    print(a-1)

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

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-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 b >= a: print(a)
else: print(a - 1)

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

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

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)
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 = [int(i) for i in input().split()]

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

print(ans)

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())
print( a if a<= b else a-1)

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a, b = na()

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

Solution (Python):
a = input().split()
b = int(a[1])
a = int(a[0])

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

Solution (Python):
a, b = (int(i) for i in 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=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())
if(a<=b):
	print(a)
else:
	print(a-1)

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

if b>=a:
    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 = [int(_) for _ in 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 = list(map(int, input().split()))

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

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

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

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

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


if __name__ == '__main__':
    print(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 b < a:
    a -= 1
print(a)

Solution (Python):
a, b = map(int,input().split())
if b < a:
    a -= 1
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 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 = [int(i) for i in input().split()]
if a <= b:
  print(a)
else:
  print(a-1)

Solution (Python):
import re
import math

if __name__ == '__main__':

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

    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())
print(a-(1 if a>b else 0))

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

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

Solution (Python):
def i1():
 return int(input())
def i2():
 return [int(i) for i in input().split()]
[a,b]=i2()
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 ,raw_input().split())
if a > b :
    print a - 1
else:
    print a

Solution (Python):
a,b=[int(i) for i in input().split()]
if b<a:
  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())

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())
n=0
if A<=B:
    n=1
print(A-1+n)

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 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())
print(a-1+(a<=b))

Solution (Python):


import math
a,b=map(int,input().split());
ans=a;
if a>b : 
    ans=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):
a,b=map(int,input().split())
if b<a:
    print(a-1)
else:
    print(a)

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

if b < a:
    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())
print(a if b >= a 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 b >= a:
    print(a)
else:
    print(a-1)

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

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

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

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