#include<iostream.h> long sub(long n) { if(n<=5) return n; else { long k=5; while(k<=n) k=k*2; return k/2; } } void main() { long s; cin>>s; while(s) { long n=sub(s); cout<<n<<" "; s=s-n; } }