#inport
import sys
import numpy as np
#import itertools as itlt
#from collections import deque

#input 
N,R = [int(x) for x in sys.stdin.readline().split()]

    
if N >= 10:
    ans = R
else:
    ans = R + 100 * (10-N)
        


print(ans) import sys sys import numpy as np numpy int(x) for x in sys.stdin.readline().split() for x in sys.stdin.readline().split() x sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split for x in sys.stdin.readline().split() int(x) int x N,R = [int(x) for x in sys.stdin.readline().split()] N [int(x) for x in sys.stdin.readline().split()] R if N >= 10:
    ans = R
else:
    ans = R + 100 * (10-N)
         N >= 10 N 10 ans = R ans R ans = R + 100 * (10-N) ans R + 100 * (10-N) R 100 * (10-N) 100 10-N 10 N print(ans) print ans N,R = [int(x) for x in sys.stdin.readline().split()] [int(x) for x in sys.stdin.readline().split()] N ans = R R ans ans = R + 100 * (10-N) R + 100 * (10-N) ans R = [int(x) for x in sys.stdin.readline().split()] [int(x) for x in sys.stdin.readline().split()] R
#inport
import sys
import numpy as np
#import itertools as itlt
#from collections import deque

#input 
N,R = [int(x) for x in sys.stdin.readline().split()]

    
if N >= 10:
    ans = R
else:
    ans = R + 100 * (10-N)
        


print(ans)
