#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; bool existPre = false; for(int i=0; i v(n+1); for(int j=0; j<=n; j++){ cin >> v[j]; } if(v[n] == 1){ isBottom = false; if(existPre) ans += "∨"; existPre = true; ans += "("; for(int j=0; j