#K = input()
NR = list(map(int, input().split()))
#s = input().split()
#N = int(input())

if (NR[0] >= 10):
    print(NR[1])
else:
    print(NR[1] + 100 * (10 - NR[0])) NR = list(map(int, input().split())) NR list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if (NR[0] >= 10):
    print(NR[1])
else:
    print(NR[1] + 100 * (10 - NR[0])) NR[0] >= 10 NR[0] NR 0 10 print(NR[1]) print NR[1] NR 1 print(NR[1] + 100 * (10 - NR[0])) print NR[1] + 100 * (10 - NR[0]) NR[1] NR 1 100 * (10 - NR[0]) 100 10 - NR[0] 10 NR[0] NR 0 NR = list(map(int, input().split())) list(map(int, input().split())) NR
#K = input()
NR = list(map(int, input().split()))
#s = input().split()
#N = int(input())

if (NR[0] >= 10):
    print(NR[1])
else:
    print(NR[1] + 100 * (10 - NR[0]))