f x|x<17||x>99=[x|x>0]|x<80=x-a:f a|1<2=4:20:f a where a=mod x$x`div`70*10+10 main=mapM(putStrLn.unwords.map show.f)[1..100]