#include<iostream>
#include<cmath>
using namespace std;
int n;
void erjinzhi(int x){
if(x==1) cout << "0";
if(x==0) return;
for(int i = 1; i <= 15; i++){
if(pow(2,i)==x){
cout << "2(";
cout << erjinzhi(i) << ")";
break;
}
if(pow(2,i)<x&&pow(2,i+1)>x){
cout << "2(" << erjinzhi(i) << ")+" << erjinzhi(x-pow(2,i));
}
}
}
int main(){
cin >> n;
if(n==1){
cout << "2(0)";
return 0;
}
erjinzhi(n);
return 0;
}
[Error] no match for 'operator<<' (operand types are 'std::ostream {aka std::basic_ostream}' and 'void')
[Error] no match for 'operator<<' (operand types are 'std::basic_ostream' and 'void')