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