N,R=map(int,input().split())
if 10<=N:
  print(R)
else:
  a=R+100*(10-N)
  print(a) N,R=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split R if 10<=N:
  print(R)
else:
  a=R+100*(10-N)
  print(a) 10<=N 10 N print(R) print R a=R+100*(10-N) a R+100*(10-N) R 100*(10-N) 100 10-N 10 N print(a) print a a=R+100*(10-N) R+100*(10-N) a N,R=map(int,input().split()) map(int,input().split()) N R=map(int,input().split()) map(int,input().split()) R
N,R=map(int,input().split())
if 10<=N:
  print(R)
else:
  a=R+100*(10-N)
  print(a)