

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

if __name__ == '__main__':
	main() def main():
  N,R=map(int,input().split())
  if(N<10):
    inner=R+100*(10-N)
  else:
    inner=R
  
  print(inner) main N,R=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split R if(N<10):
    inner=R+100*(10-N)
  else:
    inner=R
  
   N<10 N 10 inner=R+100*(10-N) inner R+100*(10-N) R 100*(10-N) 100 10-N 10 N inner=R inner R print(inner) print inner if __name__ == '__main__':
	main() __name__ == '__main__' __name__ '__main__' main() main def main():
  N,R=map(int,input().split())
  if(N<10):
    inner=R+100*(10-N)
  else:
    inner=R
  
  print(inner) def main():
  N,R=map(int,input().split())
  if(N<10):
    inner=R+100*(10-N)
  else:
    inner=R
  
  print(inner) main


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

if __name__ == '__main__':
	main()