N, R = map(int, input().split())
print("{}".format(R if N >= 10 else R + 100 * (10 - N))) N, R = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split R print("{}".format(R if N >= 10 else R + 100 * (10 - N))) print "{}".format(R if N >= 10 else R + 100 * (10 - N)) "{}".format "{}" format R if N >= 10 else R + 100 * (10 - N) N >= 10 N 10 R R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N R = map(int, input().split()) map(int, input().split()) R N, R = map(int, input().split()) map(int, input().split()) N
N, R = map(int, input().split())
print("{}".format(R if N >= 10 else R + 100 * (10 - N)))