/*
AizuOnline A0031
Weight
*/
#include <stdio.h>


main()
{
  int weight;
  int fundou;
  
  while(EOF !=scanf("%d",&weight))
    {  for(fundou=1;fundou <= 512;fundou <<= 1)
         if(weight & fundou)
           printf("%d ",fundou);
       printf("\n");
    }

return(0);
}