package main import . "fmt" func main() { var s int64 Scan(&s) x:=[]int64{} for s>0 { e:=f(s) e*=e s-=e x=append(x,e) } Println(len(x)) for i,v:=range x { if i>0 { Print(" ") } Print(v) } Println() } func f(n int64) int64 { var x int64 for i:=60;i>=0;i-- { y:=x|(1<