带符号二进制 Power Signs

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2107 [PDF](https://uva.onlinejudge.org/external/111/p11166.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11166/cf5b781bbd68cd9fb1f1eef91f3cc123ab853f6e.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11166/86480a6c18b7886be4baf96b214c3a95c28e8a0f.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11166/56adefc7af20d6f993168da86463b7e67a10b523.png)

输入输出样例

输入样例 #1

10000
1111
10111
0

输出样例 #1

+0000
+000-
++00-