#include <bits/stdc++.h>
using namespace std;
int main()
{
string s, A, B;
int cnt = 0;
while (cin >> s && s != ".")
{
cnt++;
if (cnt == 2) A = s;
if (cnt == 14) B = s;
}
if (cnt >= 14) printf("%s and %s are inviting you to dinner...", A.c_str(), B.c_str());
else if (cnt >= 2) printf("%s is the only one for you...", A.c_str());
else puts("Momo... No one is for you ...");
return 0;
}