from calendar import c import math N,M,K = map(int, input().split()) c = M*(N-1) m = N**2-K*N-N gcd = math.gcd(c,m) print(c//gcd,m//gcd)