#include using namespace std; string s, t; int e[4][4]; int f[4][4]; int toint(char c) { if (c=='A') return 0; if (c=='C') return 1; if (c=='G') return 2; return 3; } int x; int main() { ios_base::sync_with_stdio(false); cin>>s>>t; for (int i=0; i>v; vector>w; for (int j=0; j<4; ++j) { if (i==j) continue; if (e[i][j]) v.push_back({j, e[i][j]}); if (e[j][i]) w.push_back({j, e[j][i]}); } if (v.size()>0 && w.size()>0) { if (v.size()==w.size()) { e[i][v[0].first]=0; e[w[0].first][i]=0; //x-=v[0].second; if (v[0].second!=w[0].second) { cout<<"SZAR"<w.size()) { e[i][v[0].first]=0; e[i][v[1].first]=0; e[w[0].first][i]=0; //x-=w[0].second; if (v[0].second+v[1].second!=w[0].second) { cout<<"SZAR"<