import sys;input=lambda:sys.stdin.readline().rstrip();aint=lambda:int(input());ints=lambda:list(map(int,input().split()))
import math;floor,ceil=math.floor,math.ceil
from collections import deque
Yes=lambda b:print('Yes')if b else print('No');YES=lambda b:print('YES')if b else print('NO')
is_even=lambda x:True if x%2==0 else False

def main():
  n,r = ints()
  if n>=10:
    print(r)
  else:
    print(r+100*(10-n))

      
if __name__ == '__main__':
  main() import sys sys input=lambda:sys.stdin.readline().rstrip() input lambda:sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip aint=lambda:int(input()) aint lambda:int(input()) int(input()) int input() input ints=lambda:list(map(int,input().split())) ints lambda:list(map(int,input().split())) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split import math math floor,ceil=math.floor,math.ceil floor math.floor math floor ceil math.ceil math ceil from collections import deque Yes=lambda b:print('Yes')if b else print('No') Yes lambda b:print('Yes')if b else print('No') print('Yes')if b else print('No') b print('Yes') print 'Yes' print('No') print 'No' b YES=lambda b:print('YES')if b else print('NO') YES lambda b:print('YES')if b else print('NO') print('YES')if b else print('NO') b print('YES') print 'YES' print('NO') print 'NO' b is_even=lambda x:True if x%2==0 else False is_even lambda x:True if x%2==0 else False True if x%2==0 else False x%2==0 x%2 x 2 0 True False x def main():
  n,r = ints()
  if n>=10:
    print(r)
  else:
    print(r+100*(10-n))

       main n,r = ints() n ints() ints r if n>=10:
    print(r)
  else:
    print(r+100*(10-n))

       n>=10 n 10 print(r) print r print(r+100*(10-n)) print r+100*(10-n) r 100*(10-n) 100 10-n 10 n if __name__ == '__main__':
  main() __name__ == '__main__' __name__ '__main__' main() main floor,ceil=math.floor,math.ceil math.floor floor ceil=math.floor,math.ceil math.ceil ceil ints=lambda:list(map(int,input().split())) lambda:list(map(int,input().split())) ints input=lambda:sys.stdin.readline().rstrip() lambda:sys.stdin.readline().rstrip() input YES=lambda b:print('YES')if b else print('NO') lambda b:print('YES')if b else print('NO') YES aint=lambda:int(input()) lambda:int(input()) aint def main():
  n,r = ints()
  if n>=10:
    print(r)
  else:
    print(r+100*(10-n))

       def main():
  n,r = ints()
  if n>=10:
    print(r)
  else:
    print(r+100*(10-n))

       main Yes=lambda b:print('Yes')if b else print('No') lambda b:print('Yes')if b else print('No') Yes is_even=lambda x:True if x%2==0 else False lambda x:True if x%2==0 else False is_even
import sys;input=lambda:sys.stdin.readline().rstrip();aint=lambda:int(input());ints=lambda:list(map(int,input().split()))
import math;floor,ceil=math.floor,math.ceil
from collections import deque
Yes=lambda b:print('Yes')if b else print('No');YES=lambda b:print('YES')if b else print('NO')
is_even=lambda x:True if x%2==0 else False

def main():
  n,r = ints()
  if n>=10:
    print(r)
  else:
    print(r+100*(10-n))

      
if __name__ == '__main__':
  main()