from collections import defaultdict





def main():

    n = int(eval(input()))

    print((n * 800 - 200 * (n // 15)))





if __name__ == '__main__':

    main()

from collections import defaultdict





def main():

    N = int(eval(input()))

    print((800 * N - (N // 15) * 200))





if __name__ == '__main__':

    main()

from collections import defaultdict


def main():
    n = int(eval(input()))
    print((n * 800 - 200 * (n // 15)))


if __name__ == "__main__":
    main()

from collections import defaultdict


def main():
    N = int(eval(input()))
    print((800 * N - (N // 15) * 200))


if __name__ == "__main__":
    main()

-    n = int(eval(input())) -    print((n * 800 - 200 * (n // 15))) +    N = int(eval(input())) +    print((800 * N - (N // 15) * 200))