n, x, y = map(int, input().split())
j = []
m = []
for i in range(1, n // x + 1):
if(n - i * x) > 0 and (n - i * x) % y == 0:
l = (n - i * x) // y
j.append(i)
m.append(l)
pass
print(max(j), min(m))
/**************************************************************
Problem: 1220
User: admin
Language: Python
Result: Accepted
Time:97 ms
Memory:34480 kb
****************************************************************/