import math

def main():
  N, R = map(int, input().split())
  
  if N >= 10:
    print(R)
  else:
    print(int(100 * (10 - N)) + R)
  
  
  
main() import math math def main():
  N, R = map(int, input().split())
  
  if N >= 10:
    print(R)
  else:
    print(int(100 * (10 - N)) + R)
  
  
   main N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R if N >= 10:
    print(R)
  else:
    print(int(100 * (10 - N)) + R)
  
  
   N >= 10 N 10 print(R) print R print(int(100 * (10 - N)) + R) print int(100 * (10 - N)) + R int(100 * (10 - N)) int 100 * (10 - N) 100 10 - N 10 N R main() main def main():
  N, R = map(int, input().split())
  
  if N >= 10:
    print(R)
  else:
    print(int(100 * (10 - N)) + R)
  
  
   def main():
  N, R = map(int, input().split())
  
  if N >= 10:
    print(R)
  else:
    print(int(100 * (10 - N)) + R)
  
  
   main
import math

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