#include using namespace std; int main(){ string A1,A2,B1,B2,C1,C2; cin>>A1>>B1>>C1; cin>>A2>>B2>>C2; if(B1.length()>B2.length()){ cout<B2.at(i)){ cout<