#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
#define SIZE 20
int Solve(int n){
int k[20];
int total = 0,temp = n;
while (temp > 1){
total ++;
k[total] = temp % 2;
temp /= 2;
}
if (temp == 1){
total ++; k[total] = 1;
}
int last;
int i;
for (i=1;i<=total;i++){
if (k[i] == 1){
last = i;
break;
}
}
for (i=total;i>=1;i--){
if (k[i] == 0) continue;
int now = i-1;
if (now == 1){
printf("2");
}
else {
printf("2(");
if (now >= 3) Solve(now);
else printf("%d",now);
printf(")");
}
if (i != last){
printf("+");
}
}
}
int main(){
int n;
while (scanf("%d",&n) != EOF){
Solve(n);
}
return 0;
}