""" https://yukicoder.me/problems/no/1835 元々 = M/N 正解の場合 M/N ○ M-1 個 × N-M 個 M-1 / (N-1-K) 不正解の場合 (N-M)/N ○ M個 M / (N-1-K) """ #a/b , c/d def is_big(a,b,c,d): if a*d >= c*d: return a,b else: return c,d import math from sys import stdin N,M,K = map(int,stdin.readline().split()) x,y = is_big(M,N,M*(N-1),N*(N-1-K)) g = math.gcd(x,y) print (x//g,y//g)