#include<stdio.h> int n,t=1<<27;main(){scanf("%d",&n);if(n&1)printf("-1");else while(t>1){if((n|(t/=2))==n)printf("%d ",t);}}
126B AC PJT1 (逃