def plus(a,b,c,d): return a*d+b*c,b*d import math N,M,K=map(int,input().split()) a,b=plus(((M-1)*M),(N-K-1)*N,M*(N-M),(N-K-1)*N) if a/b>M/N: g=math.gcd(a,b) print(a//g,b//g) else: g=math.gcd(M,N) print(M//g,N//g)