'''
INPUT SHORTCUTS
N, K = map(int,input().split())
N ,A,B = map(int,input().split())
string = str(input())
arr = list(map(int,input().split()))
N = int(input())
'''
n , m = map(int,input().split())
if n>=10:
	print(m)
else:
	m = m + (100*(10-n))
	print(m) '''
INPUT SHORTCUTS
N, K = map(int,input().split())
N ,A,B = map(int,input().split())
string = str(input())
arr = list(map(int,input().split()))
N = int(input())
''' n , m = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split m if n>=10:
	print(m)
else:
	m = m + (100*(10-n))
	print(m) n>=10 n 10 print(m) print m m = m + (100*(10-n)) m m + (100*(10-n)) m 100*(10-n) 100 10-n 10 n print(m) print m n , m = map(int,input().split()) map(int,input().split()) n m = map(int,input().split()) map(int,input().split()) m m = m + (100*(10-n)) m + (100*(10-n)) m
'''
INPUT SHORTCUTS
N, K = map(int,input().split())
N ,A,B = map(int,input().split())
string = str(input())
arr = list(map(int,input().split()))
N = int(input())
'''
n , m = map(int,input().split())
if n>=10:
	print(m)
else:
	m = m + (100*(10-n))
	print(m)