x, y = map(int, input().split())
if x >= 10:
    print(y)
else:
    print(y+100*(10-x)) x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y if x >= 10:
    print(y)
else:
    print(y+100*(10-x)) x >= 10 x 10 print(y) print y print(y+100*(10-x)) print y+100*(10-x) y 100*(10-x) 100 10-x 10 x y = map(int, input().split()) map(int, input().split()) y x, y = map(int, input().split()) map(int, input().split()) x
x, y = map(int, input().split())
if x >= 10:
    print(y)
else:
    print(y+100*(10-x))
