Takahashi is a member of a programming competition site, ButCoder.
Each member of ButCoder is assigned two values: Inner Rating and Displayed Rating.
The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.
Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

-----Constraints-----
 - All values in input are integers.
 - 1 \leq N \leq 100
 - 0 \leq R \leq 4111

-----Input-----
Input is given from Standard Input in the following format:
N R

-----Output-----
Print his Inner Rating.

-----Sample Input-----
2 2919

-----Sample Output-----
3719

Takahashi has participated in 2 contests, which is less than 10, so his Displayed Rating is his Inner Rating minus 100 \times (10 - 2) = 800.
Thus, Takahashi's Inner Rating is 2919 + 800 = 3719.
[{"code": "n, r = map(int, input().split())\n\nprint(r+100*(10-min(10, n)))", "passed": true, "time": 0.61, "memory": 14080.0, "status": "done"}, {"code": "n,x = list(map(int,input().split()))\nif n >= 10:\n  print(x)\nelse:\n  y = x + (10-n) * 100\n  print(y)\n\n", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\n\nif n >= 10:\n    print(r)\nelse:\n    print((r + 100 * (10 - n)))\n", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "n, r = map(int, input().split())\nif n < 10:\n  print((r + 100*(10-n)))\nelse:\n  print(r)", "passed": true, "time": 0.15, "memory": 14124.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\nif n >= 10:\n    print(r)\nelse:\n    print((r + 100 * (10 - n)))\n", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "N,R = map(int,input().split())\nprint(R) if N>=10 else print(R+(100*(10-N)))", "passed": true, "time": 0.24, "memory": 14100.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\n\nif n >= 10:\n  print(r)\nelse:\n  print((r+100*(10-n)))\n", "passed": true, "time": 0.24, "memory": 14312.0, "status": "done"}, {"code": "n, r = map(int, input().split())\n\nif n < 10:\n    ans = r + (100 * (10 - n))\n    print(ans)\nelse: \n    print(r)", "passed": true, "time": 0.24, "memory": 14104.0, "status": "done"}, {"code": "N, R = map(int, input().split())\n\nif N>=10:\n  print(R)\nelse:\n  print(R+100*(10-N))", "passed": true, "time": 0.15, "memory": 14180.0, "status": "done"}, {"code": "n, r = map(int, input().split())\nprint(r if n>=10 else r+100*(10-n))", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "n,r = map(int,input().split())\n\nif n < 10:\n  print(100 * (10 - n) + r)\nelse :\n  print(r)", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N>=10:\n  ans=R\nelse:\n  ans=R+100*(10-N)\nprint(ans)", "passed": true, "time": 0.15, "memory": 14108.0, "status": "done"}, {"code": "n,r=map(int,input().split())\n \nif n>=10:\n  print(r)\nelse:\n  print(r+100*(10-n))", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "N, R = map(int, input().split())\nif N >= 10:\n    print(R)\nelse:\n    print(R + 100*(10-N))", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "N,R = list(map(int, input().split()))\nprint((R+100*(10-N) if N <10 else R))\n", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "n, r =map(int,input().split())\nif n >= 10:\n    print(r)\nelse:\n    print(r+1000-100*n)", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "import os, sys, re, math\n\n(N, R) = [int(n) for n in input().split()]\n\nif N >= 10:\n    print(R)\nelse:\n    print((R + 100 * (10 - N)))\n", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "N,R = map(int,input().split())\nprint(R+100*max(0,10-N))", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "n,r=map(int,input().split())\nif n<10:\n  ans=r+(100*(10-n))\nelse:\n  ans=r\nprint(ans)", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nans=0;\nif N>=10:\n  ans+=R\nelse:\n  ans+=R+100*(10-N)\nprint(ans)", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "N, R = map(int, input().split())\nans = R + 100*max(0, (10-N))\nprint(ans)", "passed": true, "time": 0.15, "memory": 14188.0, "status": "done"}, {"code": "N , R = [int(x) for x in input().split()]\nif N >= 10 :\n  print(R)\nelse:\n  print(100*(10-N) + R)", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "n,r = map(int,input().split())\nprint(r+100*(10-n) if n<10 else r)", "passed": true, "time": 0.23, "memory": 14332.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N>9:\n  print(R)\nelse:\n  print(R+(10-N)*100)", "passed": true, "time": 0.15, "memory": 14184.0, "status": "done"}, {"code": "m = input(\"\")\nlist = m.split(\" \")\nif eval(list[0])<10:\n    print(eval(list[1])+100*(10-eval(list[0])))\nif eval(list[0])>=10:\n    print(eval(list[1]))", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "n,r=list(map(int,input().split()))\nif n>=10:\n    print(r)\nelse:\n    print((r+100*(10-n)))\n\n\n", "passed": true, "time": 0.23, "memory": 14096.0, "status": "done"}, {"code": "n,r = list(map(int,input().split()))\nprint((r if n>=10 else r+(10-n)*100))\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "N,R = map(int,input().split())\n\nif N >= 10:\n    print(R)\n\nelse:\n    print(R+100*(10-N))", "passed": true, "time": 0.14, "memory": 14392.0, "status": "done"}, {"code": "n, r = map(int, input().split())\nif n >= 10:\n  print(r)\nelse:\n  print(r + (100 * (10 - n)))", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "n,r = map(int,input().split())\nprint(r if n >= 10 else r + 100*(10-n))", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\nif n <= 10:\n    print((r + (100 * (10 - n))))\nelse:\n    print(r)\n", "passed": true, "time": 0.15, "memory": 14252.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N>=10:\n  print(R)\nelse:\n  print(R+100*(10-N))", "passed": true, "time": 0.14, "memory": 14372.0, "status": "done"}, {"code": "n,r = list(map(int, input().split()))\n\nif n >= 10:\n    print(r)\nelse:\n    print((r + 100*(10-n)))\n", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "n,r = map(int,input().split())\n\nif n >= 10:\n  ans = r\nelse:\n  ans = r + 100*(10-n)\nprint(ans)", "passed": true, "time": 0.4, "memory": 14136.0, "status": "done"}, {"code": "n,r = list(map(int,input().split()))\nif(n <=10):\n  print((r-100*(n-10)))\nelse:\n  print(r)\n", "passed": true, "time": 0.23, "memory": 14328.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nif n >= 10:\n  print(k)\nelse:\n  print(k + (10 - n)* 100 )", "passed": true, "time": 0.23, "memory": 14256.0, "status": "done"}, {"code": "N, R = list(map(int, input().split()))\nif N >= 10:\n    print(R)\nelse:\n    print((R + 100 * (10 - N)))\n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "n,r=map(int,input().split())\nprint([r+100*(10-n),r][n>=10])", "passed": true, "time": 0.42, "memory": 14096.0, "status": "done"}, {"code": "n,r = map(int,input().split())\nif n >= 10 :\n    print(r)\nelse :\n    k = n\n    x = r+100*(10-k)\n    print(x)", "passed": true, "time": 0.15, "memory": 14248.0, "status": "done"}, {"code": "N, R = map(int, input().split())\n\nif N >= 10:\n    print(R)\n    return\nelse:\n    print(R + 100 * (10 - N))\n    return", "passed": true, "time": 0.15, "memory": 14332.0, "status": "done"}, {"code": "n,p = map(int,input().split())\nif n < 10:\n  rate = p + 100*(10-n)\nelse:\n  rate = p\nprint(rate)", "passed": true, "time": 0.15, "memory": 14236.0, "status": "done"}, {"code": "n, r = map(int, input().split())\nif n < 10:\n    print(r + 100 * (10 - n))\nelse:\n    print(r)", "passed": true, "time": 0.4, "memory": 14348.0, "status": "done"}, {"code": "N,R = list(map(int,input().split()))\n\nif N<10:\n  print((100*(10-N)+R))\nelse:\n  print (R)\n", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "n,r = map(int,input().split())\n\nif n >= 10:\n    print(r)\n\nelse:\n    a = 100 * (10 - n)\n    b = a + r\n    print(b)", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "N, R = map(int, input().split())\n\nif N >= 10:\n  print(R)\nelse:\n  print(R + 100*(10-N))", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "n,r= map(int, input().split())\n\nif n>=10:\n  print(r)\nelse:\n  print(r+100*(10-n))", "passed": true, "time": 0.14, "memory": 14388.0, "status": "done"}, {"code": "n,r=map(int,input().split())\n\nprint(r) if n>=10 else print(r+100*(10-n))\n", "passed": true, "time": 0.15, "memory": 14100.0, "status": "done"}, {"code": "N, R = list(map(int,input().split()))\nif N >= 10:\n  print(R)\nelse:\n  print((R + 100*(10-N)))\n", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "N,R = map(int,input().split())\n\nif N >= 10:\n  print(R)\nelse:\n  R = R+100*(10-N)\n  print(R)", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N<10:\n  print(R+(100*(10-N)))\nelse:\n  print(R)", "passed": true, "time": 0.14, "memory": 14352.0, "status": "done"}, {"code": "N = list(map(int,input().split()))\nif(N[0] < 10):\n  print(N[1]+(100*(10-N[0])))\nelse:\n  print(N[1])", "passed": true, "time": 0.15, "memory": 14136.0, "status": "done"}, {"code": "n,r = map(int,input().split())\nprint(r if n>=10 else r+100*(10-n))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "n, r = map(int, input().split())\nprint(r+100*(10-n) if n < 10 else r)", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "n,r=map(int,input().split())\nprint(r-100*min(0,n-10))", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "N,R=map(int, input().split())\n\nif N>=10:\n    print(str(R))\nelse:\n    x=R+(100*(10-N))\n    print(str(x))", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "n, r = map(int, input().split(\" \"))\nif  n < 10:\n  print(r + 100 * (10 - n))\nelse:\n  print(r)", "passed": true, "time": 0.15, "memory": 14272.0, "status": "done"}, {"code": "n, r = map(int,input().split())\nprint(r if n >= 10 else r + 100*(10-n))", "passed": true, "time": 0.21, "memory": 14300.0, "status": "done"}, {"code": "\ndef main():\n\tn, r = list(map(int, input().split()))\n\tif n>= 10:\n\t\treturn r\n\telse:\n\t\treturn r + (100 * (10 -n))\n\t\n\ndef __starting_point():\n    print((main()))\n\n__starting_point()", "passed": true, "time": 0.23, "memory": 14116.0, "status": "done"}, {"code": "n,r=map(int, input().split())\nprint(r+100*(10-n)*(n<10))", "passed": true, "time": 0.15, "memory": 14104.0, "status": "done"}, {"code": "N, R = map(int,input().split())\n\nif N <= 9:\n    ans = R + (1000-100*N)\nelse:\n    ans = R\nprint(ans)", "passed": true, "time": 0.19, "memory": 14256.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\n\nif n >= 10:\n    print(r)\nelse:\n    print((r+ 100 * (10 - n)))\n", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "n, r = map(int,input().split())\nif n >= 10:\n    print(r)\nelse:\n    print(r+100*(10-n))", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "def resolve():\n\tn,r = map(int,input().split())\n\tprint(r if n>=10 else r+100*(10-n))\nresolve()", "passed": true, "time": 0.15, "memory": 14168.0, "status": "done"}, {"code": "N,R = map(int,input().split())\nif N <= 10:\n  print(100 * (10 - N) + R)\nelse:\n  print(R)", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N>=10:\n    print(R)\nelse:\n    print(R+100*(10-N))", "passed": true, "time": 0.14, "memory": 14376.0, "status": "done"}, {"code": "N, R = map(int, input().split())\nprint(R+max(1000-100*N, 0))", "passed": true, "time": 0.15, "memory": 14296.0, "status": "done"}, {"code": "n, r = map(int, input().split())\n\nif n >= 10:\n    print(r)\nelse:\n    print(r + 100*(10-n))", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "n, r = map(int, input().split())\n\nif n >= 10:\n    print(r)\nelse:\n    r = r + 100*(10-n)\n    print(r)", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "N, R = map(int, input().split())\n\nif N < 10:\n    print((100 * (10 - N)) + R)\nelse:\n    print(R)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n,r=list(map(int,input().split()))\nif n<10:\n  r+=(10-n)*100\nprint(r)\n", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "# coding: utf-8\n# Your code here!\n\n[n,r] = input().split()\nn = int(n)\nr = int(r)\n\nif n >= 10:\n    print(r)\nelse:\n    ans = r + 100*(10-n)\n    print(ans)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "n, r = map(int, input().split())\n\nif n < 10:\n    r += 100*(10-n)\n\nprint(r)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nprint(R+max(0,(100*(10-N))))", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "N,R = map(int, input().split())\nif N < 10:\n  print(R+(100*(10-N)))\nelse:\n  print(R)", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N<10:\n    print(R+100*(10-N))\nelse:\n    print(R)", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nn,r=list(map(int,input().split()))\nans=r\nif n>=10:\n    print(r)\nelse:\n    print((r+100*(10-n)))\n", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "N,R = map(int,input().split())\nprint((R,R +100*(10-N))[N<=10])", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\n\nif n >= 10:\n  print(r)\n  \nelse:\n  print((r + 100*(10 - n)))\n\n", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "n,r=map(int,input().split())\nif n>=10:\n    print(r)\nelse:\n    print(r+100*(10-n))", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "N,R = map(int,input().split())\n\nif N >= 10:\n    print(R)\n\nelse:\n    r = 100*(10-N)\n    print(r+R)", "passed": true, "time": 0.24, "memory": 14344.0, "status": "done"}, {"code": "def main():\n    N, R = map(int, input().split())\n\n    if N >= 10:\n        print(R)\n    else:\n        print(R+(100*(10-N)))\n\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.15, "memory": 14204.0, "status": "done"}, {"code": "n, r = map(int, input().split())\n\nif n >= 10:\n    print(r)\nelse:\n    print(r+100*(10-n))", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nif a >= 10:\n    print(b)\nelse:\n    print(b+100*(10-a))", "passed": true, "time": 0.3, "memory": 14156.0, "status": "done"}, {"code": "N,R=list(map(int,input().split()))\nif N>=10:\n    print(R)\nelse:\n    K=10-N\n    I=100*K\n    print((R+I))\n", "passed": true, "time": 0.18, "memory": 14212.0, "status": "done"}, {"code": "N, R = map(int, input().split())\n\nif N >= 10 :\n    print(R)\nelse :\n    print(R + 100 * (10 - N))", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\n\nif n >= 10:\n    print(r)\nelse:\n    print((r+100*(10-n)))\n", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "n, r = map(int, input().split())\n\nif n >=10:\n  print(r)\nelse:\n  print(r + 100 * (10 - n))", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "N,R = map(int,input().split())\nif(N >= 10):\n    print(R)\nelse:\n    print(R + 100*(10-N))", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "N,R = map(int,input().split())\n\nif N<10:\n  print(100*(10-N)+R)\nelse:\n  print (R)", "passed": true, "time": 0.18, "memory": 14164.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N>=10:\n  print(R)\nelse:\n  print(R+(100*(10-N)))", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "N, R = list(map(int, input().split()))\nprint(R if N >= 10 else R + 100*(10-N))", "passed": true, "time": 0.18, "memory": 14192.0, "status": "done"}, {"code": "n, r = map(int, input().split())\nif n >= 10:\n    print(r)\nelse:\n    print(r + 100*(10-n))", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N<10:\n  print(R+100*(10-N))\nelse:\n  print(R)", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\nif n < 10:\n    print(r+(100*(10-n)))\nelse:\n    print(r)", "passed": true, "time": 0.14, "memory": 14136.0, "status": "done"}, {"code": "n, r = map(int, input().split())\n\nif n >= 10:\n    print(r)\nelse:\n    print(r+100*(10-n))", "passed": true, "time": 0.14, "memory": 14372.0, "status": "done"}, {"code": "N,R=map(int,input().split())\nif N >= 10:\n    print (R)\nelse:\n    print (100*(10-N)+R)", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "n, r = list(map(int, input().split()))\nprint((r if n >= 10 else r + 1000 - (100 * n)))\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "[N, R] = [int(i) for i in input().split()]\nprint(R + 100*max(10-N, 0))", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "n,r=map(int,input().split())\nif n<10:\n    print(r+(100*(10-n)))\nelse:\n    print(r)", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}]