n = int(input()) print("-1 " * 3 if n == n & -n else n, n & -n, n ^ (n & -n))