n = gets.to_i a = n if n.to_s(2).count(?1) == 1 puts '-1 -1 -1' exit(0) end b = 1<<n.to_s(2).reverse.index(?1) c = a^b puts [a, b, c].join(' ')