#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, t, p, ta, pi, ca, dec;
  scanf("%d", &n);
  ;
  char f[n][25], s[25], prev;
  int val[n][3];
  for (int i = 0; i < n; i++) {
    ta = pi = ca = 0;
    scanf("%d", &m);
    ;
    scanf("%s", &s);
    ;
    strcpy(f[i], s);
    for (int i = 0; i < m; i++) {
      scanf("%s", &s);
      ;
      t = p = 1;
      prev = s[0];
      for (int i = 1; i < 8; i++) {
        if (s[i] == '-') continue;
        if ((s[i] - 48) == (prev - 48))
          p = 0;
        else if ((s[i] - 48) > (prev - 48)) {
          t = 0;
          p = 0;
        } else if ((s[i] - 48) != (prev - 48))
          t = 0;
        prev = s[i];
      }
      if (t)
        ta++;
      else if (p)
        pi++;
      else
        ca++;
    }
    val[i][0] = ta;
    val[i][1] = pi;
    val[i][2] = ca;
  }
  int mt = -1, make_pair = -1, mc = -1, ct, cp, cc;
  for (int i = 0; i < n; i++) {
    if (val[i][0] > mt) {
      mt = val[i][0];
      ct = 1;
    } else if (val[i][0] == mt)
      ct++;
    if (val[i][1] > make_pair) {
      make_pair = val[i][1];
      cp = 1;
    } else if (val[i][1] == make_pair)
      cp++;
    if (val[i][2] > mc) {
      mc = val[i][2];
      cc = 1;
    } else if (val[i][2] == mc)
      cc++;
  }
  t = 0;
  cout << "If you want to call a taxi, you should call: ";
  for (int i = 0; i < n; i++) {
    if (val[i][0] == mt) {
      cout << f[i];
      t++;
      if (t == ct) {
        cout << ".\n";
        break;
      } else
        cout << ", ";
    }
  }
  t = 0;
  cout << "If you want to order a pizza, you should call: ";
  for (int i = 0; i < n; i++) {
    if (val[i][1] == make_pair) {
      cout << f[i];
      t++;
      if (t == cp) {
        cout << ".\n";
        break;
      } else
        cout << ", ";
    }
  }
  cout
      << "If you want to go to a cafe with a wonderful girl, you should call: ";
  t = 0;
  for (int i = 0; i < n; i++) {
    if (val[i][2] == mc) {
      cout << f[i];
      t++;
      if (t == cc) {
        cout << ".";
        break;
      } else
        cout << ", ";
    }
  }
  return 0;
}
