// merge si mai eficient
#include <iostream>
#include <string.h>
using namespace std;
int main() {
char c[100];
cin.get(c, 100);
cin.get();
char c2[100];
cin.get(c2, 100);
int k=0;
while (strcimp(c, c2)!=0) {
cout<<"nume incorect!"<<endl;
k++;
cin.get(c2, 100);
}
if (strcimp(c, c2)==0) {
k++;
cout<<"nume corect!"<<endl;
cout<<"ghicit din "<<k<<" incercari!";
}
return 0;
}