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