n, r = [int(_) for _ in input().split()]
print(r if n >= 10 else r + 100 * (10 - n)) int(_) for _ in input().split() for _ in input().split() _ input().split() ().split () input split for _ in input().split() int(_) int _ n, r = [int(_) for _ in input().split()] n [int(_) for _ 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 n, r = [int(_) for _ in input().split()] [int(_) for _ in input().split()] n r = [int(_) for _ in input().split()] [int(_) for _ in input().split()] r
n, r = [int(_) for _ in input().split()]
print(r if n >= 10 else r + 100 * (10 - n))
