Welcome to ZOJ
Information
Problems
Runs
Statistics
Ranklist
Clarification
123 - ZOJ Monthly, January 2013 - J
Cube

Time Limit: 2 Seconds      Memory Limit: 65536 KB      Special Judge

S=(-1)Kn*n3+(-1)Kn-1*(n-1)3+...+(-1)K2*23+(-1)K1*13.
Your task is to change Ki to find the minimum |S|.

Input

Mutiple test cases, process to the end of file.
Each case has a single line with one integer n (1≤n≤10000).

Output

For each case:
Output n characters with '+' or '-'. ('+' means (-1)Ki=1,'-' means (-1)Ki=-1)

Sample Input

1
3

Sample Output

+
-++

Hint

Sample 1: |+13|=1
Sample 2: |-33+23+13|=18

Author: HE, Yueyang
Submit    Status