N,R=[int(x) for x in input().rstrip().split()]
if 10<=N:
  print(R)
else:
  print(R+100*(10-N)) int(x) for x in input().rstrip().split() for x in input().rstrip().split() x input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split for x in input().rstrip().split() int(x) int x N,R=[int(x) for x in input().rstrip().split()] N [int(x) for x in input().rstrip().split()] R if 10<=N:
  print(R)
else:
  print(R+100*(10-N)) 10<=N 10 N print(R) print R print(R+100*(10-N)) print R+100*(10-N) R 100*(10-N) 100 10-N 10 N N,R=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] N R=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] R
N,R=[int(x) for x in input().rstrip().split()]
if 10<=N:
  print(R)
else:
  print(R+100*(10-N))
