import math N,M,K = map(int,input().split()) ans = 0 c = M*(N-1) p = N*(N-1-K) gcd = math.gcd(c,p) print(c//gcd,p//gcd)