n, m, k = map(int, input().split()) import math p = m*(n-1) q = n*(n-k-1) g = math.gcd(p, q) p, q = p//g, q//g print(p, q)