ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

n,r = nm()

if n<10:
  print(r+(10-n)*100)
else:
  print(r) ni = lambda: int(input()) ni lambda: int(input()) int(input()) int input() input nm = lambda: map(int, input().split()) nm lambda: map(int, input().split()) map(int, input().split()) map int input().split() ().split () input split nl = lambda: list(map(int, input().split())) nl lambda: list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split n,r = nm() n nm() nm r if n<10:
  print(r+(10-n)*100)
else:
  print(r) n<10 n 10 print(r+(10-n)*100) print r+(10-n)*100 r (10-n)*100 10-n 10 n 100 print(r) print r ni = lambda: int(input()) lambda: int(input()) ni nl = lambda: list(map(int, input().split())) lambda: list(map(int, input().split())) nl nm = lambda: map(int, input().split()) lambda: map(int, input().split()) nm n,r = nm() nm() n r = nm() nm() r
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

n,r = nm()

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