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