from math import gcd

n, m, k = map(int, input().split())

p = m * (m - 1) + (n - m) * m
q = n * (n - k - 1)
g = gcd(p, q)
print(p // g, q // g)