n = int(input()) digit = -1 d = 0 nc = n while nc > 1: if nc % 2 == 1: digit = d break d += 1 nc //= 2 if digit == -1: print(-1, -1, -1) else: print(n, pow(2, digit), n - pow(2, digit))