package main import . "fmt" import . "math" func main() { var s int64 Scan(&s) x:=[]int64{} for s>0 { e:=int64(Sqrt(float64(s))) e*=e s-=e x=append(x,e) } Println(len(x)) for i,v:=range x { if i>0 { Print(" ") } Print(v) } Println() }