import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


n,r = map(int, input().split())
if n >= 10:
    ans = r
else:
    ans = r + 100*(10-n)
print(ans) import sys sys input = lambda : sys.stdin.readline().rstrip() input lambda : sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip sys.setrecursionlimit(max(1000, 10**9)) sys.setrecursionlimit sys setrecursionlimit max(1000, 10**9) max 1000 10**9 10 9 write = lambda x: sys.stdout.write(x+"\n") write lambda x: sys.stdout.write(x+"\n") sys.stdout.write(x+"\n") sys.stdout.write sys.stdout sys stdout write x+"\n" x "\n" x n,r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r if n >= 10:
    ans = r
else:
    ans = r + 100*(10-n) n >= 10 n 10 ans = r ans r ans = r + 100*(10-n) ans r + 100*(10-n) r 100*(10-n) 100 10-n 10 n print(ans) print ans r = map(int, input().split()) map(int, input().split()) r input = lambda : sys.stdin.readline().rstrip() lambda : sys.stdin.readline().rstrip() input ans = r r ans n,r = map(int, input().split()) map(int, input().split()) n ans = r + 100*(10-n) r + 100*(10-n) ans write = lambda x: sys.stdout.write(x+"\n") lambda x: sys.stdout.write(x+"\n") write
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


n,r = map(int, input().split())
if n >= 10:
    ans = r
else:
    ans = r + 100*(10-n)
print(ans)