#include<cstdio>
#include<iostream>
#include<vector>
#include<string>
using namespace std;
string change(int x)
{
if(x==0)
return "0";
if(x==1)
return "";
vector<int>m;
while(x!=0)
{
m.push_back(x%2);
x/=2;
}
string n="";
for(int i=m.size()-1;i>=0;i--)
{
if(m[i]!=0)
{
if(change(i)!="")
n=n+"2("+change(i)+")+";
else
{
n=n+"2+";
}
}
}
n.erase(n.end()-1);
return n;
}
int main()
{
int x;
while(scanf("%d",&x)!=EOF)
{
cout<<change(x)<<endl;
}
return 0;
}