# -*- coding: utf-8 -*-


def main():
    import sys

    input = sys.stdin.readline

    n, k = map(int, input().split())
    ans = 0

    for i in range(1, n + 1):
        for j in range(1, k + 1):
            ans += 100 * i + j

    print(ans)


if __name__ == "__main__":
    main()

# -*- coding: utf-8 -*-


def main():
    import sys

    input = sys.stdin.readline

    n, k = map(int, input().split())
    ans = 0

    for i in range(1, n + 1):
        for j in range(1, k + 1):
            ans += 100 * i + j

    print(ans)


if __name__ == "__main__":
    main()

# -*- coding: utf-8 -*-