import sys
import math
import bisect

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

if __name__ == "__main__":
    main() import sys sys import math math import bisect bisect def main():
    n, m = map(int, input().split())
    if n < 10:
        m += 100 * (10 - n)
    print(m) main n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m if n < 10:
        m += 100 * (10 - n)
     n < 10 n 10 m += 100 * (10 - n) m 100 * (10 - n) 100 10 - n 10 n print(m) print m if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    n, m = map(int, input().split())
    if n < 10:
        m += 100 * (10 - n)
    print(m) def main():
    n, m = map(int, input().split())
    if n < 10:
        m += 100 * (10 - n)
    print(m) main
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()
