import math n, m, k = map(int, input().split()) a = m * (m- 1) + m * (n - m) b = n * (n - k - 1) gcd = math.gcd(a, b) print(f'{a//gcd} {b//gcd}')