#include <bits/stdc++.h>
using namespace std;
int oo = (int)1e9;
int get(string str) {
  int f = 0;
  for (int i = 0; i < (int)str.size(); ++i) {
    if (str[i] != '-') {
      if (str[i] != str[0]) f = 1;
    }
  }
  if (f == 0) return f;
  for (int i = 1; i < (int)str.size(); ++i) {
    if (str[i] != '-') {
      if (str[i] >= str[i - 1 - (i == 3 || i == 6)]) f = 2;
    }
  }
  return f;
}
int main() {
  int n;
  cin >> n;
  string cn;
  vector<string> vs(n);
  vector<vector<int> > cnt(n, vector<int>(3, 0));
  for (int i = 0; i < n; ++i) {
    int s;
    cin >> s >> vs[i];
    for (int j = 0; j < s; ++j) {
      cin >> cn;
      cnt[i][get(cn)]++;
    }
  }
  vector<vector<int> > res(3);
  for (int i = 0; i < 3; ++i) {
    int mx = 0;
    for (int j = 0; j < n; ++j) {
      mx = max(mx, cnt[j][i]);
    }
    for (int j = 0; j < n; ++j) {
      if (cnt[j][i] == mx) {
        res[i].push_back(j);
      }
    }
  }
  cout << "If you want to call a taxi, you should call: ";
  for (int i = 0; i < (int)res[0].size(); ++i) {
    if (i) cout << ", ";
    cout << vs[res[0][i]];
  }
  cout << ".\nIf you want to order a pizza, you should call: ";
  for (int i = 0; i < (int)res[1].size(); ++i) {
    if (i) cout << ", ";
    cout << vs[res[1][i]];
  }
  cout << ".\nIf you want to go to a cafe with a wonderful girl, you should "
          "call: ";
  for (int i = 0; i < (int)res[2].size(); ++i) {
    if (i) cout << ", ";
    cout << vs[res[2][i]];
  }
  cout << "." << endl;
  return 0;
}
