#include using namespace std; typedef int64_t var; void afis(var n) { if(n == 4) cout<<1; else { cout<>n>>r; cout<<"("; afis(n); cout<<")^"<