#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string stt[101], s;
  int arr[101][3] = {};
  int m, p = -1, g = -1, t = -1;
  for (int i = 0; i < n; i++) {
    cin >> m;
    cin >> stt[i];
    for (int j = 0; j < m; j++) {
      cin >> s;
      if (s[0] == s[1] && s[1] == s[3] && s[3] == s[4] && s[4] == s[6] &&
          s[6] == s[7])
        arr[i][0]++;
      else if (s[0] > s[1] && s[1] > s[3] && s[3] > s[4] && s[4] > s[6] &&
               s[6] > s[7])
        arr[i][1]++;
      else
        arr[i][2]++;
    }
    t = max(t, arr[i][0]);
    p = max(p, arr[i][1]);
    g = max(g, arr[i][2]);
  }
  cout << "If you want to call a taxi, you should call: ";
  bool f = 0;
  for (int i = 0; i < n; i++) {
    if (t == arr[i][0] && f)
      cout << ", " << stt[i];
    else if (t == arr[i][0]) {
      f = 1;
      cout << stt[i];
    }
  }
  cout << '.' << endl;
  cout << "If you want to order a pizza, you should call: ";
  f = 0;
  for (int i = 0; i < n; i++) {
    if (p == arr[i][1] && f)
      cout << ", " << stt[i];
    else if (p == arr[i][1]) {
      f = 1;
      cout << stt[i];
    }
  }
  cout << '.' << endl;
  cout
      << "If you want to go to a cafe with a wonderful girl, you should call: ";
  f = 0;
  for (int i = 0; i < n; i++) {
    if (g == arr[i][2] && f)
      cout << ", " << stt[i];
    else if (g == arr[i][2]) {
      f = 1;
      cout << stt[i];
    }
  }
  cout << '.' << endl;
}
