import itertools
import functools
import math
from collections import Counter
from itertools import combinations
import re


N,R=map(int,input().split())

if N >= 10:
    print(R)
else:
    print( R + ( 100 * ( 10 - N ))) import itertools itertools import functools functools import math math from collections import Counter from itertools import combinations import re re 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( 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 R=map(int,input().split()) map(int,input().split()) R N,R=map(int,input().split()) map(int,input().split()) N
import itertools
import functools
import math
from collections import Counter
from itertools import combinations
import re


N,R=map(int,input().split())

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