#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
char A[7] = {0};
cout<<"Vvedite nomer : ";
cin>>A;
if(A[0]+A[1]+A[2] == A[3]+A[4]+A[5])
cout<<"Chislo schastlivoe"<<endl;
else
cout<<"Chislo ne schastlivoe"<<endl;
//system("pause");
return 0;
}