num_of_participation, rating = map(int, input().split())

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

if num_of_participation >= 10:
    print(rating)
else:
    print(rating + 100 * (10 - num_of_participation))