import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
n,r = [int(i) for i in readline().split()]

if n >= 10:
    print(r)
else:
    print(r+100*(10-n)) import sys sys sys.setrecursionlimit(10**6) sys.setrecursionlimit sys setrecursionlimit 10**6 10 6 readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline int(i) for i in readline().split() for i in readline().split() i readline().split() ().split () readline split for i in readline().split() int(i) int i n,r = [int(i) for i in readline().split()] n [int(i) for i in readline().split()] r if n >= 10:
    print(r)
else:
    print(r+100*(10-n)) n >= 10 n 10 print(r) print r print(r+100*(10-n)) print r+100*(10-n) r 100*(10-n) 100 10-n 10 n readline = sys.stdin.readline sys.stdin.readline readline n,r = [int(i) for i in readline().split()] [int(i) for i in readline().split()] n r = [int(i) for i in readline().split()] [int(i) for i in readline().split()] r
import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
n,r = [int(i) for i in readline().split()]

if n >= 10:
    print(r)
else:
    print(r+100*(10-n))