#include <iostream>
using namespace std;
int main()
{
int a, b, s1 = 0, s2 = 0;
cin >> a >> b;
while (a != 0)
{
int c = a % 10;
s1 = s1 + c;
a = a / 10;
}
while (b != 0)
{
int c = b % 10;
s2 = s2 + c;
b = b / 10;
}
if (s1 == s2)
{
cout << "Au suma cifrelor egale";
}
else
{
cout << "Nu au suma cifrelor egale";
}
return 0;
}