#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string chel[n];
  int asuka[n];
  int rey[n];
  int misato[n];
  for (int j = 0; j < n; j++) {
    asuka[j] = 0;
    rey[j] = 0;
    misato[j] = 0;
    int a;
    cin >> a >> chel[j];
    for (int i = 0; i < a; i++) {
      string s;
      cin >> s;
      if (s[1] == s[0] && s[3] == s[0] && s[4] == s[0] && s[6] == s[0] &&
          s[7] == s[0]) {
        asuka[j]++;
        continue;
      }
      char g;
      bool saveusblessrng = true;
      for (int z = 0; z < s.size(); z++) {
        if (z == 0) {
          g = s[z];
          continue;
        }
        if (s[z] == '-') continue;
        if (s[z] >= g) {
          saveusblessrng = false;
          break;
        }
        g = s[z];
      }
      if (saveusblessrng)
        rey[j]++;
      else
        misato[j]++;
    }
  }
  int ni = 0, se = 0, koi = 0;
  for (int i = 0; i < n; i++) {
    if (asuka[i] > ni) ni = asuka[i];
    if (rey[i] > se) se = rey[i];
    if (misato[i] > koi) koi = misato[i];
  }
  cout << "If you want to call a taxi, you should call: ";
  bool ciaut = false;
  for (int i = 0; i < n; i++) {
    if (asuka[i] == ni) {
      if (!ciaut) {
        cout << chel[i];
        ciaut = true;
      } else {
        cout << ", " << chel[i];
      }
    }
  }
  cout << ".\nIf you want to order a pizza, you should call: ";
  ciaut = false;
  for (int i = 0; i < n; i++) {
    if (rey[i] == se) {
      if (!ciaut) {
        cout << chel[i];
        ciaut = true;
      } else {
        cout << ", " << chel[i];
      }
    }
  }
  cout << ".\nIf you want to go to a cafe with a wonderful girl, you should "
          "call: ";
  ciaut = false;
  for (int i = 0; i < n; i++) {
    if (misato[i] == koi) {
      if (!ciaut) {
        cout << chel[i];
        ciaut = true;
      } else {
        cout << ", " << chel[i];
      }
    }
  }
  cout << ".";
  return 0;
}
