# AGC004a
def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    a, b, c = map(int, input().split())

    if a % 2 == 0 or b % 2 == 0 or c % 2 == 0:
        print(0)
        exit(0)
    print(min(a*b, b*c, c*a))


if __name__ == '__main__':
    main()

[((5, 4, 5, 32), 'sys.setrecursionlimit', 'sys.setrecursionlimit', ({(5, 26, 5, 31): '(10 ** 6)'}, {}), '(10 ** 6)', False, 'import sys\n')]