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.



Sample input:
5 5


Sample output:
5

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(min(a, b))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
print(min(l))

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
print(len(list(filter(lambda date: date[0] == date[1], [(m, d) for m in range(1, a + 1) for d in range(1, b + 1)]))))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#n = int(input())
a,b = map(int,input().split())
#a_L = list(map(int,input().split()))
ans = 0
for i in range(1,a+1):
    for j in range(1,b+1):
        if i == j:
            ans +=1
print(ans)

Submission status: Wrong Answer

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

print(min(a, b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(max(0,a-1)+max(0,b-a+1))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a <= b:
    print(a)
else:
    print(min(a,b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


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-b_len
    print(ans)

Submission status: Wrong Answer

Solution code:


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-b_len
    print(ans)

Submission status: Wrong Answer

Solution code:
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)
else:
    print(b_len)

Submission status: Wrong Answer

Solution code:


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

Submission status: Wrong Answer

Solution code:


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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print((10*a+b-11)//11+1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print((10*a+b)//11+1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(10*a+b-11+1)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    A, B = map(int, input().split())
    print(min(A, B))


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# import numpy as np
# import scipy as sp
# print(a,b,c,sep="") # 半角スペースなしで出力(abc)
# n=int(input())  #数値入力 「N」だけの入力のとき
# a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
# c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
# s=[list(map(int,list(input()))) for i in range(h)]  # 文字列の二次元配列入力
# s = [list(map(int, input().split())) for i in range(n)] # 数値の二次元配列入力
# a = b[:], a = [x[:] for x in b] # deepcopy
# chr(ord('a') + 1)
# s.sort(key=lambda x: x[1], reverse=False) # 2番目の要素で昇順にソート（Trueなら降順）
#

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

print(min(a, b))

Submission status: Wrong Answer

Solution code:
s = input()
print(s.count("o")*100 + 700)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print(min(min(a,b),12))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = 0

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys

# import numpy as np

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

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

print((10*a+b)//11)

Submission status: Wrong Answer

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

ans = day if month > day else month

if ans >= 12:
  print("12")
else:
  print(ans)

Submission status: Wrong Answer

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

ans = day if month > day else month

if ans > 12:
  print("12")
else:
  print(ans)

Submission status: Wrong Answer

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

ans = day if month > day else month

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    from sys import stdin, setrecursionlimit
    setrecursionlimit(10**6)
    r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]

    res = 0
    a, b = map(int, r.split())
    print(min(a,b))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b = (int(i) for i in input().split())
n = 10*a + b
print(n//11)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a <= b:
  print(a)
else:
  print(b%a)

Submission status: Wrong Answer

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

if a < b:
  print(a)
else:
  if b%a == 0:
    print(a)
  else:
    print(b%a)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
a,b=map(int,input().split())
cnt=0
for i in range(1,a+1):
    for j in range(1,b+1):
        if i==j:
            cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
a,b=map(int,input().split())
cnt=1
for i in range(1,a):
    for j in range(1,b):
        if i==j:
            cnt+=1
print(cnt)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

count = 0
for a in range(1,12,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)

Submission status: Wrong Answer

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

count = 0
for a in range(1,A+1,1):
    for b in range(1,B+1,1):
        if a==b:
            count = count + 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
print(min(a, b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b = INTM()
    if a<b:
        print(a-1)
    else:
        print(a)
if __name__ == '__main__':
    do()

Submission status: Wrong Answer

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b = INTM()
    if a<b:
        print(1-a)
    else:
        print(a)
if __name__ == '__main__':
    do()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))


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

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
ans = 0
for i in range(1, a + 1):
    for j in range(1, b + 1):
        if i == j:
            ans += 1
print(ans)

Submission status: Wrong Answer

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

print(min([min([a, b]), 12]))

Submission status: Wrong Answer

Solution code:
# ABC096a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Submission status: Wrong Answer

Solution code:
#096a
a,b = map(int, input().split())
ans = 0
for i in range(1,a+1):
    if i<=b:
        ans += 1
    else:
        break
        
print(ans)

Submission status: Wrong Answer

Solution code:
a , b = map(int,input().split())
print(min(b , 11))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a <= b: # 月の数より、日にちの数の方が大きい場合
 	print(a)
else:
 	print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))
print(min(a, b))

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))
print(min(a, min(b, 12)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = (int(i) for i in input().split())
ans = 0
for i in range(a):
    for j in range(min(b, 12)):
        if i + 1 == j + 1: ans += 1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = a if a<=b else b

print(ans)

Submission status: Wrong Answer

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

ans = a if a>=b else b

print(ans)

Submission status: Wrong Answer

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

counter = 0
for i in range(1,a+1):
	for j in range(1,b+1):
		if i==j:
			counter += 1
			
print(counter)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

def main():
    a,b = map(int, input().split())
    result = 0
    for month in range(1,a+1):
        for day in range(1,b+1):
            if day == month:
                result+=1
    print(result)



if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

print(min(a,b))

Submission status: Wrong Answer

Solution code:
from sys import stdin

a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

Solution code:
a,b=map(int, input().split())
count=0
for i in range(a):
    for j in range(b):
        if i==j:
            count+=1
print(count)

Submission status: Wrong Answer

Solution code:
import datetime
a,b = list(map(int, input().split()))
cnt = 0
pro = datetime.date(2018, a, b)

for i in range(1, 13):
  if(datetime.date(2018, i, i) < pro):
    cnt +=1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    a,b = list(map(int,input().split()))
    print(solve(a,b))
def solve(a,b):
    m = a-1 if a >= 2 else 0
    n =  1 if a >= b else 0
    return m + n

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    a,b = list(map(int,input().split()))
    print(solve(a,b))
def solve(a,b):
    m = a-1
    n =  1 if a >= b else 0
    return m + n

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    a,b = list(map(int,input().split()))
    print(solve(a,b))
def solve(a,b):
    m = (a-1) * 12
    n =  b if b < 12 else 12

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b = [int(num) for num in input().split()]
sum = 0

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

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

print(min(a, b))

Submission status: Wrong Answer

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

if a == b:
    print(a)
elif a < b:
    print(a)
else:
    print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(1+max(a-2,0)+(a<=b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
cnt = 0
for i in range(1,a+1):
    for j in range(1,b+1):
        if i == j:
            cnt += 1
        else:
            cnt += 0
print(cnt)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
cnt = 0
for i in range(1,a+1):
    for j in range(1,b+1):
        if i == j and i <= 12 and j <= 31:
            cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
cnt = 0
for i in range(1,a+1):
    for j in range(1,b+1):
        if i == j:
            cnt += 1
print(cnt)

Submission status: Wrong Answer

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

if a >= b:
    print(a)

else:
    print(a - 1)

Submission status: Wrong Answer

Solution code:
readints = lambda : map(int, input().split(' '))
a,b=readints()
print(min(a,b))

Submission status: Wrong Answer

Solution code:
M,D = map(int, input().split())
print(min(M,D))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B =[int(x) for x in input().split()]
print(min(A,B))

Submission status: Wrong Answer

Solution code:
A,B =[int(x) for x in input().split()]
print(min(A,B,12))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


def main():
	line = input()
	vector = [int(x) for x in line.split()]
	a = vector[0]
	b = vector[1]
	if a >= b:
		print(a)
	else:
		print(a - 1)



if __name__ == "__main__":
	main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

#a<bならa月の高橋は来ない
if a < b:
  print(a-1)
else:
  print(a)

Submission status: Wrong Answer

Solution code:
num = input().split()

if int(num[1]) >=11:
  print(num[0])
else:
  print(int(num[0])-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
ans=0
for i in range(1,a+1):
  for t in range(1,b+1):
    if i==t:
      ans=ans+1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
ans=0
for i in range(a+1):
  for t in range(b+1):
    if i==t:
      ans=ans+1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
ans=0
for i in range(a):
  for t in range(b):
    if i==t:
      ans=ans+1
print(ans)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main(a, b):
    days = a * 30 + b

    count = 0
    
    min_i = min(a, b) + 1
    
    if min(a, b) == 1:
        min_i = 1
    
    for i in range(1, min_i):
        if isinstance((days // i * 30 + b), int):
            count += 1

    return count


if __name__ == '__main__':
    a, b = map(int, input().split(' '))
    print(main(a, b))

Submission status: Wrong Answer

Solution code:
def main(a, b):
    days = a * 30 + b

    count = 0
    for i in range(1, min(a, b) + 1):
        if isinstance((days // i * 30 + b), int):
            count += 1

    return count


if __name__ == '__main__':
    a, b = map(int, input().split(' '))
    print(main(a, b))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
a,b = map(int,input().split())
ans = 0
for i in range(1,13):
    if i <= a and i <= b:
        ans += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
  a, b = map(int, input().split())
  if a >= b:
    print(a)
  elif a < b:
    print(b)

Submission status: Wrong Answer

Solution code:
import numpy as np
a,b = map(int,input().split())

ans = 0
for i in range(1,13):
    if i <= a and i <= b:
        ans += 1

print(ans)

Submission status: Wrong Answer

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

print(a if a<= b else b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = list(map(int,input().split()))
#print(a,b)
ans =0
for i in range(1,a+1):
  for x in range(1,b+1):
    if i ==x:
      ans += 1
      continue
      
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
day = 0
for a in range(1, A):
  day += 1
if A == B:
  day += 1
print(day)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
ans = 0
cnt = 0
if b >= a:
    cnt = 1
print(a + cnt)

Submission status: Wrong Answer

Solution code:
a,b = (int(_) for _ in input().split())

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

Submission status: Wrong Answer

Solution code:
a,b = (int(_) for _ in input().split())

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

Submission status: Wrong Answer

Solution code:
A,B = (int(_) for _ in input().split())

print(min(A,B))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

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

if a > b:
    print (b)

else:
    print (a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
a,b = [int(x) for x in stdin.readline().rstrip().split()]
print(min(a,b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 0

for i in range(a) : 
    for j in range(b) : 
        if i == j : 
            cnt += 1
            
print(cnt)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=0
for i in range(1,a+1):
  for j in range(1,b+1):
    if i==j:
      c+=1
print(c)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
print(x-1 if x>=y else x)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
print(x if x>=y else x-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = input().split()
a, b = int(a), int(b)
print(min(a, b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 0
if a <= b:
    cnt += a
print(cnt)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 0
if a == b:
    cnt += a
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a<b:
    print(a)
elif a == b:
    print(b)
else:
    print(b)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a<b:
    print(a)
elif a == b:
    print(a)
else:
    print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a,b = f()
    if a<b:
        print(a)
    else:
        print(b)


solve()

Submission status: Wrong Answer

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a,b = f()
    print(min(a,b))


solve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if B<A:
  print(B)
#そのほかの場合を考える(3月15日など)
else:
  print(A)

Submission status: Wrong Answer

Solution code:
a, b = map(int, (input().split()))
print(a + 1 if b >= a * 11 else a)

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
a = i[0]
b = i[1]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = (int(_) for _ in input().split())  

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

Submission status: Wrong Answer

Solution code:
a, b = (int(_) for _ in input().split())  
res = 0

for i in range(a):
  for ii in range(b):
    if i == ii:
      res += 1
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
c = 0
for i in range(a):
    for j in range(b):
        if i == j:
            c += 1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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