#include using namespace std; int main(void){ string s1,s2; int d; cin >> d; cin >> s1 >> s2; s1 += s2; string s = s1; int ret = 0; for(int i=0;i