n,r = [int(n) for n in input().split()]
if n<10:
  print(r+(100*(10-n)))
else:
  print(r)  int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n n,r = [int(n) for n in input().split()] n [int(n) for n in input().split()] r if n<10:
  print(r+(100*(10-n)))
else:
  print(r)  n<10 n 10 print(r+(100*(10-n))) print r+(100*(10-n)) r 100*(10-n) 100 10-n 10 n print(r) print r n,r = [int(n) for n in input().split()] [int(n) for n in input().split()] n r = [int(n) for n in input().split()] [int(n) for n in input().split()] r
n,r = [int(n) for n in input().split()]
if n<10:
  print(r+(100*(10-n)))
else:
  print(r) 