#include <iostream>
using namespace std;
int main() {
long long int a, b;
cin >> a >> b;
long long int a2 = a, b2 = b;
int ok = 1;
while (a != 0 && b != 0) {
if ((a % 10 + b % 10) >= 10) {
ok = 0;
}
a = a / 10;
b = b / 10;
}
a = a2, b = b2;
if (ok) {
cout << "Gigel stie!";
} else {
cout << "Gigel nu stie! El poate cumpara " << a + b << " bomboane!";
}
return 0;
}