from math import gcd N, M, K = map(int, input().split()) P = M * (N - 1) Q = N * (N - K - 1) g = gcd(P, Q) print(P//g, Q//g)