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