n, m = map(int, input().split())
print(m+(n<10)*100*(10-n)) n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m print(m+(n<10)*100*(10-n)) print m+(n<10)*100*(10-n) m (n<10)*100*(10-n) (n<10)*100 n<10 n 10 100 10-n 10 n m = map(int, input().split()) map(int, input().split()) m n, m = map(int, input().split()) map(int, input().split()) n
n, m = map(int, input().split())
print(m+(n<10)*100*(10-n))