# coding: utf-8 # input p, q, r = map(int, input().split()) a, b, c = map(int, input().split()) # processing # gold medal high = p * a low = p * (a - 1) + 1 # silver medal if q * (a + b) < high: high = q * (a + b) if q * (a + b - 1) + 1 > low: low = q * (a + b - 1) + 1 # bronze medal if r * (a + b + c) < high: high = r * (a + b + c) if r * (a + b + c - 1) + 1 > low: low = r * (a + b + c - 1) + 1 # output if high - low >= 0: print("{} {}".format(low, high)) else: print(-1)