import sys
input = sys.stdin.readline

N,R = list(map(int,input().split()))

if N >= 10:
    print(R)
else:
    print(R+100*(10-N)) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline N,R = list(map(int,input().split())) N list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input 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 R = list(map(int,input().split())) list(map(int,input().split())) R input = sys.stdin.readline sys.stdin.readline input N,R = list(map(int,input().split())) list(map(int,input().split())) N
import sys
input = sys.stdin.readline

N,R = list(map(int,input().split()))

if N >= 10:
    print(R)
else:
    print(R+100*(10-N))
