def main():
    count, rate = (int(i) for i in input().rstrip().split(' '))
    ans = rate if count >= 10 else rate + (100 * (10 - count))
    print(str(ans))


if __name__ == '__main__':
    main() def main():
    count, rate = (int(i) for i in input().rstrip().split(' '))
    ans = rate if count >= 10 else rate + (100 * (10 - count))
    print(str(ans)) main int(i) for i in input().rstrip().split(' ') for i in input().rstrip().split(' ') i input().rstrip().split(' ') ().rstrip().split ().rstrip() ().rstrip () input rstrip split ' ' for i in input().rstrip().split(' ') int(i) int i count, rate = (int(i) for i in input().rstrip().split(' ')) count (int(i) for i in input().rstrip().split(' ')) rate ans = rate if count >= 10 else rate + (100 * (10 - count)) ans rate if count >= 10 else rate + (100 * (10 - count)) count >= 10 count 10 rate rate + (100 * (10 - count)) rate 100 * (10 - count) 100 10 - count 10 count print(str(ans)) print str(ans) str ans if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    count, rate = (int(i) for i in input().rstrip().split(' '))
    ans = rate if count >= 10 else rate + (100 * (10 - count))
    print(str(ans)) def main():
    count, rate = (int(i) for i in input().rstrip().split(' '))
    ans = rate if count >= 10 else rate + (100 * (10 - count))
    print(str(ans)) main
def main():
    count, rate = (int(i) for i in input().rstrip().split(' '))
    ans = rate if count >= 10 else rate + (100 * (10 - count))
    print(str(ans))


if __name__ == '__main__':
    main()
