ri = lambda S: [int(v) for v in S.split()]
def rii(): return ri(input())

N, R = rii()

if N > 10:
    print(R)
else:
    print(R + (100*(10-N))) int(v) for v in S.split() for v in S.split() v S.split() S.split S split for v in S.split() int(v) int v ri = lambda S: [int(v) for v in S.split()] ri lambda S: [int(v) for v in S.split()] [int(v) for v in S.split()] S def rii(): return ri(input()) rii N, R = rii() N rii() rii 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 def rii(): return ri(input()) def rii(): return ri(input()) rii R = rii() rii() R N, R = rii() rii() N ri = lambda S: [int(v) for v in S.split()] lambda S: [int(v) for v in S.split()] ri
ri = lambda S: [int(v) for v in S.split()]
def rii(): return ri(input())

N, R = rii()

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