#include using namespace std; int main(){ int n; cin >> n; bool isTop = true; bool isBottom = true; string ans = "A="; int loop = n * n; if(n == 1) loop = 2; for(int i=0; i v(n+1); for(int j=0; j<=n; j++){ cin >> v[j]; } if(v[n] == 1){ isBottom = false; ans += "("; for(int j=0; j