a = list(map(int, input().split()))
print(a[1] + (10 - min(a[0] , 10)) * 100) a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print(a[1] + (10 - min(a[0] , 10)) * 100) print a[1] + (10 - min(a[0] , 10)) * 100 a[1] a 1 (10 - min(a[0] , 10)) * 100 10 - min(a[0] , 10) 10 min(a[0] , 10) min a[0] a 0 10 100 a = list(map(int, input().split())) list(map(int, input().split())) a
a = list(map(int, input().split()))
print(a[1] + (10 - min(a[0] , 10)) * 100)
