import itertools
import math
import fractions
import functools
n, r = map(int, input().split())
if n >= 10: print(r)
else: print(r + 1000 - 100*n) import itertools itertools import math math import fractions fractions import functools functools 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 + 1000 - 100*n) n >= 10 n 10 r = map(int, input().split()) map(int, input().split()) r n, r = map(int, input().split()) map(int, input().split()) n
import itertools
import math
import fractions
import functools
n, r = map(int, input().split())
if n >= 10: print(r)
else: print(r + 1000 - 100*n)