Chef and powers of 2

All submissions for this problem are available.
Codegolf
Problem Statement
Any even number can be expressed as sum of positive powers of 2 . For example 30 = 2 + 4 + 8 + 16 . Given a positive even number N, output the powers of 2 in ascending order whose sum is N .
Input
An even integer n
Output
Output the positive powers of 2 in ascending order whose sum is N .
Constraints
 2 <= N <= 10^{9}
 N is even
Example
Input: 10 Output: 2 8
Input: 18 Output: 2 16
Input: 98 Output: 2 32 64
Input: 40 Output: 8 32
Input: 64 Output: 64
Note : Write the shortest possible code
Author:  rajat1603 
Tags  rajat1603 
Date Added:  1012015 
Time Limit:  1 sec 
Source Limit:  50000 Bytes 
Languages:  C, CPP14, JAVA, PYTH, PYTH 3.6, TEXT 
Comments
 Please login at the top to post a comment.
SUCCESSFUL SUBMISSIONS
Fetching successful submissions