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