#include #define FOR(v, a, b) for(int v = (a); v < (b); ++v) #define FORE(v, a, b) for(int v = (a); v <= (b); ++v) #define REP(v, n) FOR(v, 0, n) #define REPE(v, n) FORE(v, 0, n) using namespace std; int main(){ string filename = __FILE__; ifstream ifs(filename); vector original; string s; while(getline(ifs,s)){ original.push_back(s); } vector modified; REP(i,(int)original.size()){ cin >> s; modified.push_back(s); } int x = 0; REP(i,(int)original.size()){ if(original[i] == modified[i]){ x += original[i].size(); }else{ REP(j,(int)original[i].size()){ if(original[i][j] != modified[i][j]){ cout << x+j << endl; cout << "\"" << original[i][j] << "\"" << endl; cout << "\"" << modified[i][j] << "\"" << endl; } } break; } } return 0; }