import sys

def ISI(): return map(int, sys.stdin.readline().rstrip().split())

n, r = ISI()
if n<10:
	r+=100*(10-n)
print(r) import sys sys def ISI(): return map(int, sys.stdin.readline().rstrip().split()) ISI n, r = ISI() n ISI() ISI r if n<10:
	r+=100*(10-n) n<10 n 10 r+=100*(10-n) r 100*(10-n) 100 10-n 10 n print(r) print r n, r = ISI() ISI() n r = ISI() ISI() r def ISI(): return map(int, sys.stdin.readline().rstrip().split()) def ISI(): return map(int, sys.stdin.readline().rstrip().split()) ISI r+=100*(10-n) 100*(10-n) r
import sys

def ISI(): return map(int, sys.stdin.readline().rstrip().split())

n, r = ISI()
if n<10:
	r+=100*(10-n)
print(r)
