# -*- coding: utf-8 -*- import math N, M, K = map(int,input().split()) P = M * (N -1) Q = N * (N - K - 1) g = math.gcd(P, Q) P //= g Q //= g print(P, Q)