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-----
5 5

-----Sample Output-----
5

There are five days that are Takahashi: 1-1, 2-2, 3-3, 4-4 and 5-5.
[{"code": "a,b=map(int,input().split())\n\nif a>b:\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.15, "memory": 14240.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nif n > m:\n  print(n-1)\nelse:print(n)", "passed": true, "time": 0.15, "memory": 14284.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a>b:\n  a-=1\nprint(a)", "passed": true, "time": 0.15, "memory": 14192.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nif b>=a:\n    print(a)\nelse:\n    print(a-1)", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "a,b = map(int,input().rstrip().split())\nif a>b:\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.24, "memory": 14248.0, "status": "done"}, {"code": "a, b = list(map(int, input().split()))\nres = a - 1\nif a <= b:\n    res += 1\n\nprint(res)\n", "passed": true, "time": 0.24, "memory": 14084.0, "status": "done"}, {"code": "def main():\n    a, b = list(map(int, input().split()))\n    if a <= b:\n        print(a)\n    else:\n        print((a-1))\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 14060.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a > b:\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nif a <= b:\n    print(a)\nelse:\n    print(a - 1)", "passed": true, "time": 0.23, "memory": 14092.0, "status": "done"}, {"code": "def resolve():\n    a, b = map(int, input().split())\n    if a <= b: c = a\n    else: c = a - 1\n    print(c)\nresolve()", "passed": true, "time": 0.16, "memory": 14316.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a - 1 if a > b else a)", "passed": true, "time": 0.29, "memory": 14324.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a<=b:\n    print(a)\nelse:\n    print(a-1)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a<=b:\n    ans=a\nelse:\n    ans=a-1\nprint(ans)", "passed": true, "time": 0.16, "memory": 14056.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a <= b:\n    print(a)\nelse:\n    print(a - 1)", "passed": true, "time": 0.16, "memory": 14296.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a <= b:\n    print(a)\nelse:\n    print(a - 1)", "passed": true, "time": 0.15, "memory": 14296.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nif a<=b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a<=b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "a,b=map(int,input().split())\n \nprint(a) if a<=b else print(a-1)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint(a+(b>=a)-1)", "passed": true, "time": 0.29, "memory": 14092.0, "status": "done"}, {"code": "a,b=map(int,input().split())\n\nans=a-1\n\nif b>=a:\n\tprint(ans+1)\nelse:\n  \tprint(ans)", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nans = a if a <= b else a-1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nc = a\nif a > b:\n  print(c-1)\nelse:\n  print(c)", "passed": true, "time": 0.15, "memory": 14172.0, "status": "done"}, {"code": "a,b = list(map(int,input().split()))\nprint(((a-1)+(b>=a)))\n", "passed": true, "time": 0.13, "memory": 14096.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint(a-(a>b))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a > b:\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "a, b = list(map(int,input().split()))\n\nans = a - (a>b)\nprint(ans)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a, b=map(int,input().split())\nif a<=b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.23, "memory": 14076.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a if b >= a else a - 1)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "import bisect, collections, copy, heapq, itertools, math, string, sys\ninput = lambda: sys.stdin.readline().rstrip() \nsys.setrecursionlimit(10**7)\nINF = float('inf')\ndef I(): return int(input())\ndef F(): return float(input())\ndef SS(): return input()\ndef LI(): return [int(x) for x in input().split()]\ndef LI_(): return [int(x)-1 for x in input().split()]\ndef LF(): return [float(x) for x in input().split()]\ndef LSS(): return input().split()\n\ndef resolve():\n    a, b = LI()\n\n    if a <= b:\n        print(a)\n    else:\n        print((a - 1))\n\ndef __starting_point():\n    resolve()\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 14356.0, "status": "done"}, {"code": "a,b=map(int,input().split())\n\nif a<=b:\n    print(a)\nelse:\n    print(a-1)", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "a,b=input().split()\na=int(a)\nb=int(b)\nif a<=b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "a,b = map(int,input().split())\n\nif b >= a:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\na, b = list(map(int, input().split()))\n\nans = 0\nfor i in range(1, 13):\n    if i < a:\n        ans += 1\n    elif i == a:\n        if i <= b:\n            ans += 1\nprint(ans)\n", "passed": true, "time": 0.54, "memory": 14244.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nif a > b :\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nans= a if a<=b else a-1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif (a > b): print(a-1)\nelse: print(a)", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a-(a > b))", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "a, b = map(int, input().split())\ntakahashi = a - 1\nif b >= a:\n    takahashi += 1\nprint(takahashi)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a, b = list(map(int,input().split()))\nif a <= b:\n  print(a)\nelse:\n  print((a-1))\n", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "a,b=map(int,input().split())\n\nif a<=b:\n    ans=a\nelse:\n    ans=a-1\nprint(ans)", "passed": true, "time": 0.22, "memory": 14028.0, "status": "done"}, {"code": "A, B = [int(i) for i in input().split()]\n\nif A <= B:\n  print(A)\nelse:\n  print((A-1))\n", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a <= b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a<=b:print(a)\nelse:print(a-1)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "a,b = list(map(int,input().split()))\nprint(( a if b >= a else a-1))\n", "passed": true, "time": 0.21, "memory": 14096.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nif a <= b:\n    print(a)\nelse:\n    print(a - 1)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "a,b=map(int, input().split())\nprint(a if a<=b or a==1 else a-1)", "passed": true, "time": 0.15, "memory": 14084.0, "status": "done"}, {"code": "month, day = map(int, input().split())\ntakahashi_days = month\nif day >= month:\n    print(takahashi_days)\nelif month > day:\n    print(takahashi_days -1)", "passed": true, "time": 0.22, "memory": 14084.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nif a <= b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.15, "memory": 14100.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint(a if b>=a else a-1)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "lst = input().split()\na = int(lst[0])\nb = int(lst[1])\n\nif a <= b:\n   print(a)\nelse:\n   print(a - 1)", "passed": true, "time": 0.21, "memory": 14216.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nans = a\nif b < a:\n    ans -= 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "a, b = list(map(int, input().split()))\n\nif b < a:\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n \nif a>b:\n  print(a-1)\nelse:\n  print(a)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "a,b=list(map(int,input().split()))\nif a<=b:\n    print(a)\nelse:\n    print((a-1))\n", "passed": true, "time": 0.14, "memory": 14028.0, "status": "done"}, {"code": "a,b=list(map(int,input().split()))\nif b>=a:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nif b < a:\n  print(a-1)\nelse:\n  print(a)", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nif a <= b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nans=a\nif b<a:ans-=1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14340.0, "status": "done"}, {"code": "a,b = map(int,input().split())\n\ncnt = a - (1 if a > b else 0)\n\nprint(cnt)", "passed": true, "time": 0.16, "memory": 14036.0, "status": "done"}, {"code": "a,b=list(map(int, input().split()))\n\nif a<=b:\n    ans=a\n    \nelse:\n    ans=a-1\n    \nprint(ans)\n", "passed": true, "time": 0.17, "memory": 14164.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nif a <= b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.15, "memory": 14232.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nif a <= b:\n    print(a)\nelse:\n    print(a - 1)", "passed": true, "time": 0.59, "memory": 14088.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nif 1 <= b < a:\n  print(a-1)\nelif a <= b:\n  print(a)", "passed": true, "time": 0.15, "memory": 14284.0, "status": "done"}, {"code": "\na,b=map(int,input().split())\ncnt = 0\ncnt += a\nif b < a:\n    cnt -= 1\nprint(cnt)", "passed": true, "time": 0.18, "memory": 14084.0, "status": "done"}, {"code": "M,D = map(int,input().split())\nprint(M-1+(0,1)[D>=M])", "passed": true, "time": 0.23, "memory": 14184.0, "status": "done"}, {"code": "a, b = list(map(int, input().split()))\n\nprint((a - int(a > b)))\n", "passed": true, "time": 1.17, "memory": 14096.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nif b >= a:\n    print(a)\nelse:\n    print(a-1)", "passed": true, "time": 0.23, "memory": 14192.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint(a if b>=a else a-1)", "passed": true, "time": 0.21, "memory": 14088.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a > b:\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a > b:\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.15, "memory": 14096.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nif a <= b:\n    print(a)\nelse:\n    print(a-1)", "passed": true, "time": 0.15, "memory": 14296.0, "status": "done"}, {"code": "def mapt(fn, *args):\n    return tuple(map(fn, *args))\n\n\ndef Input():\n    return mapt(int, input().split(\" \"))\n\n\ndef main():\n    a, b = Input()\n\n    if a - b <= 0:\n        print(a)\n    else:\n        print(a - 1)\n\n\nmain()", "passed": true, "time": 0.15, "memory": 14292.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif b<a:\n    print(a-1)\nelse:\n    print(a)", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a <=b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.15, "memory": 14136.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif b >= a:\n  print(a)\nelse:\n  print(a - 1)", "passed": true, "time": 0.14, "memory": 14268.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nprint(a) if b >= a else print(a-1)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "a,b=map(int, input().split())\nprint(a-1+(a<=b))", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "#\n# abc096 a\n#\nimport sys\nfrom io import StringIO\nimport unittest\n\n\nclass TestClass(unittest.TestCase):\n    def assertIO(self, input, output):\n        stdout, stdin = sys.stdout, sys.stdin\n        sys.stdout, sys.stdin = StringIO(), StringIO(input)\n        resolve()\n        sys.stdout.seek(0)\n        out = sys.stdout.read()[:-1]\n        sys.stdout, sys.stdin = stdout, stdin\n        self.assertEqual(out, output)\n\n    def test_\u5165\u529b\u4f8b_1(self):\n        input = \"\"\"5 5\"\"\"\n        output = \"\"\"5\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_2(self):\n        input = \"\"\"2 1\"\"\"\n        output = \"\"\"1\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_3(self):\n        input = \"\"\"11 30\"\"\"\n        output = \"\"\"11\"\"\"\n        self.assertIO(input, output)\n\n\ndef resolve():\n    a, b = list(map(int, input().split()))\n\n    if a > b:\n        print((a-1))\n    else:\n        print(a)\n\n\ndef __starting_point():\n    # unittest.main()\n    resolve()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14440.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a - (b < a))", "passed": true, "time": 0.14, "memory": 14340.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nif a <= b:\n    print(a)\nelse:\n    print(a-1)", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\na, b = list(map(int, input().split()))\nif a > b:\n    print((a-1))\nelse:\n    print(a)\n", "passed": true, "time": 0.15, "memory": 14072.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nif a <= b:\n  print(a)\nelse:\n  print(a - 1)", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "a, b= map(int, input().split())\nif a> b:\n  print(a-1)\nelse:\n  print(a)", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint([a-1,a][b>=a])", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "a,b=list(map(int,input().split()))\nans=0\nans+=a\n\nif b>=a:\n    pass\nelse:\n    ans-=1\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "a, b = list(map(int, input().split()))\n\nif a > b:\n    print((a - 1))\nelse:\n    print(a)\n", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nans=0\nfor i in range(1,a):\n   for j in range(1,13):\n      if i==j:\n         ans+=1\nfor i in range(a,a+1):\n   for j in range(1,b+1):\n      if i==j:\n         ans+=1\nprint(ans)", "passed": true, "time": 0.22, "memory": 14288.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nprint(a - 1 + (1 if b >= a else 0))", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a>b:print(a-1)\nelse:print(a)", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a <= b:\n  print(a)\nelse:\n  print(a-1)", "passed": true, "time": 0.2, "memory": 14276.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a <= b:\n  print(a)\nelse:\n  print(a - 1)", "passed": true, "time": 0.21, "memory": 14328.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nif a<=b:\n    print(a)\nelse:\n    print(a-1)", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "a,b=list(map(int,input().split(\" \")))\nprint((a+(b>=a)-1))\n", "passed": true, "time": 0.22, "memory": 14188.0, "status": "done"}, {"code": "A,B=map(int,input().split())\nprint(A-(A>B))", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "a, b = list(map(int, input().split()))\nprint((a if a <= b else a - 1))\n", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a if b >= a else a-1)", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "n,m = [int(x) for x in input().split()]\nif n <= m:\n  print(n)\nelse:\n  print(n-1)", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nif a>b:\n  a-=1\nprint(a)", "passed": true, "time": 0.13, "memory": 14280.0, "status": "done"}, {"code": "a,b = list(map(int,input().split()))\n\nif a <= b: print(a)\nelse: print((a-1))\n", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}]