def gcd(a,b): if b==0: return a else: return gcd(b,a%b) N,M,K = map(int,input().split()) a = M*(N-1) b = N*(N-1-K) d = gcd(a,b) print(a//d,b//d)