http://noi.openjudge.cn/math/7832/
"""
小学奥数_7832 最接近的分数
http://noi.openjudge.cn/math/7832/
https://blog.csdn.net/zqwang/article/details/79383618
https://blog.csdn.net/tigerisland45/article/details/71157783
"""
def gcd(x, y):
m = max(x, y)
n = min(x, y)
while m%n:
m, n = n, m%n
return n
n,a,b = map(int,input( ).split( ))
p=1
q=n
x=1
while x<=n:
y=n
while y>=1:
if b*x<a*y and x*q>p*y:
p=x
q=y
y-=1
x+=1
print(p//gcd(p,q),end=' ')
print(q//gcd(p,q))