#template
def inputlist(): return [int(j) for j in input().split()]
def listinput(): return input().split()
#template
N,R = inputlist()
if N >= 10:
    print(R)
else:
    print(R + 100*(10-N)) int(j) for j in input().split() for j in input().split() j input().split() ().split () input split for j in input().split() int(j) int j def inputlist(): return [int(j) for j in input().split()] inputlist def listinput(): return input().split()
#template listinput N,R = inputlist() N inputlist() inputlist 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 inputlist(): return [int(j) for j in input().split()] def inputlist(): return [int(j) for j in input().split()] inputlist R = inputlist() inputlist() R def listinput(): return input().split()
#template def listinput(): return input().split()
#template listinput N,R = inputlist() inputlist() N
#template
def inputlist(): return [int(j) for j in input().split()]
def listinput(): return input().split()
#template
N,R = inputlist()
if N >= 10:
    print(R)
else:
    print(R + 100*(10-N))