n=[int(i) for i in input().split()]
if n[0]<10:
    print(100*(10-n[0])+n[1])
else:
    print(n[1]) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i n=[int(i) for i in input().split()] n [int(i) for i in input().split()] if n[0]<10:
    print(100*(10-n[0])+n[1])
else:
    print(n[1]) n[0]<10 n[0] n 0 10 print(100*(10-n[0])+n[1]) print 100*(10-n[0])+n[1] 100*(10-n[0]) 100 10-n[0] 10 n[0] n 0 n[1] n 1 print(n[1]) print n[1] n 1 n=[int(i) for i in input().split()] [int(i) for i in input().split()] n
n=[int(i) for i in input().split()]
if n[0]<10:
    print(100*(10-n[0])+n[1])
else:
    print(n[1])