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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i in range(1, 13):
    if a > i and b > i:
      count += 1

print(count)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
Takahashi_day = 0
list_a = list(range(1, a + 1))
list_b = list(range(1, b + 1))
print(list_a, list_b)
for i in range(a):
    for j in range(b):
        if list_a[i] == list_b[j] and list_a[i] <= 12 and list_b[j] <= 31:
            print(list_a[i], list_b[j])
            Takahashi_day += 1
        else:
            continue
print(Takahashi_day)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
Takahashi_day = 0
list_a = list(range(1, a + 1))
list_b = list(range(1, b + 1))
for i in range(a):
    for j in range(b):
        if list_a[i] == list_b[j]:
            Takahashi_day += 1
        else:
            continue
print(Takahashi_day)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(a if a<=b else 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:
# -*- coding: utf-8 -*-

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

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

Submission status: Wrong Answer

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

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:
# -*- coding: utf-8 -*-
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=input();print(int(a[0])-(a[0]>a[2]))

Submission status: Wrong Answer

Solution code:
a=input();print(int(a[0])-(a[0]>a[1]))

Submission status: Wrong Answer

Solution code:
years = [int(a) for a in input().split()]
years_month = years[0]
years_day = years[1]

if years_month or years_day:
    print(years_month)
else:
    print(0)

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

Submission status: Wrong Answer

Solution code:
def day_of_takahashi(a: int, b: int) -> int:
    return (a - 1) + (1 if a <= b else 0)


if __name__ == "__main__":
    a, b = map(int, input().split())

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)
elif A<B:
    print(A)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A>B:
    print(B)
elif A<B:
    print(A)
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:
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=map(int,input().split())
if a>=b:
  print(b)
else:
  print(a)

Submission status: Wrong Answer

Solution code:
def main() -> None:
    a, b = map(int, input().split())
    ans = 0
    for i in range(1, 13):
        if a > i:
            ans += 1
        elif b >= i:
            ans += 1
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main() -> None:
    a, b = map(int, input().split())
    ans = 0
    for i in range(1, 13):
        if a >= i and b >= i:
            ans += 1
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

print(ans)
print()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
int_a, int_b = map(int, input().split())

count = 0

for m in range(1,int_a + 1):
    for d in range(1, int_b + 1):
        if m == d:
            count += 1

print(count)

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

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:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    A,B = map(int, lines.pop(0).split(' '))
    if A < B:
        print(A)
    else:
        print(B)
#
# main
#
lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

Submission status: Wrong Answer

Solution code:
a, b =  map(int,input().split())
count = 0
for i in range(0,12,1):
  if a-int(i) <= 0 or b-int(i) <= 0:
    break
  else:
    count += 1
print(count)

Submission status: Wrong Answer

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


main()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(a - 1 + (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 m in range(1, 13):
    for d in range(1, 32):
        if a == b:
            cnt += 1

print(cnt)

Submission status: Wrong Answer

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

cnt = 0
for m in range(1, 13):
    for d in range(1, 32):
        if m == d:
            cnt += 1

print(cnt)

Submission status: Wrong Answer

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

cnt = 0
for m in range(1, a + 1):
    for d in range(1, b + 1):
        if m == d:
            cnt += 1

print(cnt)

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 = list(map(int, input().split()))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

day=31
month=12
count=0
for i in range(a):
    for s in range(b):
        if i==s:
            count+=1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


if __name__ == '__main__':
    main()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a,b = map(int,input().split())
print(a)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

count = 0

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

Submission status: Wrong Answer

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

count = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
y, m = map(int, input().split())
print(y + (1 if y <= m else 0))

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

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

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

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())
ans = 0
for i in range(a):
    for l in range(b):
        if i == l:
            ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:

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

cnt = 0
for month in range(1, a+1):
    
    day = 1
    while day <= b and day <= 12:
        if month == day:
            cnt += 1
        day += 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())
print(a + min(1,b//a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split());print(a+(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(a)
elif 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(b)

Submission status: Wrong Answer

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

print(a)

Submission status: Wrong Answer

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

print(a - (a < b))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

ans = a - 1 + (a == b)

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 = list(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:
A,B = list(map(int,input().split(" ")))
c = 0
for i in range(1,A+1):
    for j in range(1,B+1):
        print(i,j)
        if i == j:
            c+=1
print(c)

Submission status: Wrong Answer

Solution code:
A,B = list(map(int,input().split(" ")))
c = 0
for i in range(A+1):
    for j in range(B+1):
        if i == j:
            c+=1
print(c)

Submission status: Wrong Answer

Solution code:
A,B = list(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)
else:
    print(b)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3

from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def main():
    a, b = map(int, input().split())
    ans = 0
    for m in range(1, a + 1):
        for d in range(1, b + 1):
            ans += (m == d)
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

print(a + (a > b))

Submission status: Wrong Answer

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

print(a + (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 = [int(m) for m in input().split(" ")]

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

count = 0
for x in range(a):
    for y in range (b):
        if x == y:
            count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
goop=input().split()
if int(goop[0])<int(goop[1]):
    print(int(goop[0])-1)
else:
    print(int(goop[0]))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
# 1 <= a <=12, and all months have at least 12 days
count=0
for aa in range(1, a+1):
    for bb in range(1, b+1):
        if aa==bb:
            count+=1
print(count)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
# 1 <= a <=12, and all months have at least 12 days
if b <= a:
    print(a)
else: 
    print(a-1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
# 1 <= a <=12, and all months have at least 12 days
print(sum([1 for aa in range(1,a+1) for bb in range(1,b+1) if bb == aa]))

Submission status: Wrong Answer

Solution code:
a = input().split()
#print(a)
print(min(a[0],a[1]))

Submission status: Wrong Answer

Solution code:
A,B = input().split()
a = int(A)
b = int(B)
count = 0

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

print(count)

Submission status: Wrong Answer

Solution code:
A,B = input().split()
a = int(A)
b = int(B)
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:
x, y = map(int, input().split())
 
cnt = 0
for i in range(1, 13):
    if i > x:
        break
    for j in range(1, 13):
        if i == x and j == y:
            break
        if i == j:
            cnt += 1
print(cnt)

Submission status: Wrong Answer

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

cnt = 0
if a <= b :
	while(cnt <= a):
  		print(cnt+1)
  		cnt = cnt+1
        
else :
	while(cnt < a):
  		print(cnt+1)
  		cnt = cnt+1

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
 
cnt = 0
for i in range(1, 13):
    for j in range(1, 13):
        if x == i and y == j:
            cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

cnt = 0
for i in range(1, 13):
    if x >= i and y >= i:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

cnt = 0
for i in range(1, 13):
    if x <= i and y <= i:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

cnt = 0
for i in range(1, 13):
    if x == i and y == i:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
print(min(x,y))

Submission status: Wrong Answer

Solution code:
#coding : utf8


"""
@param {int}
@return {int}
"""
def calcTakahashi(a,b):

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

    return takahashi_count

if __name__ == '__main__':

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

    print(calcTakahashi(a,b))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# ANSHUL GAUTAM
# IIIT-D

a,b = map(int, input().split())
z = a-1
takahsashi = z+1
print(takahsashi)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(a-1 + b >= a)

Submission status: Wrong Answer

Solution code:
print(3**3)

Submission status: Wrong Answer

Solution code:
import calendar

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

_, month_day = calendar.monthrange(2018, a)
if b > month_day:
    b = month_day

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

for i in range(1,a+1):
    for j in range(1, b+1):
        if i == j:
            print('{} {}'.format(i, j))

Submission status: Wrong Answer

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

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())
print(a-b 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 j in range(1, b+1):
        if i == j:
            ans += 1
            break
print(ans)

Submission status: Wrong Answer

Solution code:
smonth, sday = 1,1
m,d = map(int,input().split())
total = 0
for i,j in zip(range(12),range(12)):
    if(smonth+i < m):
        total += 1
    elif(smonth+i == m):
        if(sday > d):
            break
        else:
            total +=1
            break
    else:
        break
print(total)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

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(a)
count=0
for i in range(a-1):
    count+=1
if a<b:
    count+=1
print(count)

Submission status: Wrong Answer

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

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

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

print(counter)

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
#coding: utf-8

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

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

Submission status: Wrong Answer

Solution code:
print("hello")

Submission status: Wrong Answer

Solution code:

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

count = a
if a > b:
    count -= 1

ret_str = ''
for date in range(count):
    ret_str += str(date+1) + '⁄' + str(date+1) + ', '
ret_str = ret_str[:-2]
ret_str += ' の, 合計 ' + str(count) + ' 日です.' 

print(ret_str)

Submission status: Wrong Answer

Solution code:

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

count = a
if a > b:
    count -= 1

ret_str = ''
for date in range(count):
    ret_str += str(date+1) + '/' + str(date+1) + ', '
ret_str += 'の合計' + str(count) + '日です.' 

print(ret_str)

Submission status: Wrong Answer

Solution code:

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

count = a
if a > b:
    count -= 1

ret_str = ''
for date in range(count):
    ret_str += str(date+1) + '/' + str(date+1) + ','
ret_str += 'の合計' + str(count) + '日です.' 

print(ret_str)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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())
t=0

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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:
m, d = [int(i) for i in input().split()]
print(min(12,min(m,d)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

# 入力
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:
    a = a - 1
    print(a,"日")

elif a == b:
    print(a,"日")

Submission status: Wrong Answer

Solution code:
#abc096a

a,b=map(int,raw_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:
# -*- coding: utf-8 -*-
"""
A - Day of Takahashi
https://abc096.contest.atcoder.jp/tasks/abc096_a

"""
import sys
from sys import stdin
input = stdin.readline


def calc_day_of_takahashi(a, b):
    return min(a, b)


def main(args):
    a, b = map(int, input().split())
    ans = calc_day_of_takahashi(a, b)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Wrong Answer

Solution code:
from sys import stdin
a,b = map(int,stdin.readline().split())
print min(a,b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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