DotA

Time Limit: 1000ms
Memory Limit: 32768KB
64-bit integer IO format: %lld      Java class name: Main

Description

DotA(Defence of the Ancients) is very popular in Zhejiang University.Now a new hero appears in DotA.This hero has a miraculous skill.If the target's HP n is an even number,then it will be cut in half after skill-using.Otherwise the targe's HP will plus one after skill-using.Given a target's HP,we want to decrease the target's HP from n to 1 only with this new skill.

Input

The input consists of multiple test cases.Each case contain one line with an integer n(1<n≤1000000000).

Output

For each test case,output the target's HP's changing process on a single line.The HP values connect with '-' character.

Sample Input

5
21

Sample Output

5-6-3-4-2-1
21-22-11-12-6-3-4-2-1

Author

Admin
Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .