luogu_1010 幂次方
//讨厌的模拟= =
#include<bits/stdc++.h>
using namespace std;
void work(int n){
int k,t=0,s;
while(n){
s=1; k=0;
while(s<=n){k++; s+=s;}
k--; s/=2;
if(t)printf("+");
else t=1;
if(k==0)printf("2(0)");
else if(k==1)printf("2");
else {printf("2("); work(k); printf(")");}
n-=s;
}
}
int main(){
int n;
scanf("%d",&n);
work(n);
puts("");
return 0;
}