N, R = (int(x) for x in input().split())

print(R if N >= 10 else R + 100*(10 - N)) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N, R = (int(x) for x in input().split()) N (int(x) for x in input().split()) R print(R if N >= 10 else R + 100*(10 - N)) print 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 = (int(x) for x in input().split()) (int(x) for x in input().split()) R N, R = (int(x) for x in input().split()) (int(x) for x in input().split()) N
N, R = (int(x) for x in input().split())

print(R if N >= 10 else R + 100*(10 - N))