@@ -0,0 +1,643 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    private static final int%5B%5D WEIGHTS = %7B1, 2, 4, 8, 16, 32, 64, 128, 256, 512%7D;%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        while (sc.hasNextInt()) %7B%0A%0A            StringBuilder sb = new StringBuilder();%0A%0A            int stuff = sc.nextInt();%0A%0A            for (int i = 0; i %3C WEIGHTS.length; i++) %7B%0A%0A                int and = stuff & WEIGHTS%5Bi%5D;%0A%0A                if (and != 0) %7B%0A                    sb.append(WEIGHTS%5Bi%5D + %22 %22);%0A                %7D%0A%0A            %7D%0A%0A            System.out.println(sb.toString().trim());%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0031