n=gets.to_i a = 1 << (n.bit_length-1) b = n^a if b == 0 puts '-1 -1 -1' exit end c = n puts [a,b,c]*' '