f[a,b]=unwords[show$floor x|x<-a/2:[0..a],b==x*(a-x)] m@main=getLine>>=putStrLn.f.map read.words>>m