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