#include <bits/stdc++.h>
using namespace std;
bool Taxi(string x) {
  int cnt = 1, Max = 1, i;
  int s = x.size();
  for (i = 0; i < x.size(); i++) {
    if (x[i] == '-') {
      x.erase(i, 1);
      --i;
    }
  }
  sort(x.begin(), x.end());
  for (i = 0; i < (x.size() - 1); i++) {
    if (x[i] == x[i + 1]) {
      cnt++;
    } else {
      cnt = 1;
    }
    Max = max(Max, cnt);
  }
  return (Max == (s - 2)) ? 1 : 0;
}
bool pizza(string x) {
  for (int i = 0; i < (x.size() - 1); i++) {
    if (x[i] == '-') x.erase(i, 1);
  }
  for (int i = 0; i < (x.size() - 1); i++) {
    if (x[i] <= x[i + 1]) {
      return 0;
    }
  }
  return 1;
}
struct p {
  string name;
  int taxi = 0, pizza = 0, girl = 0;
};
int main() {
  int n, m;
  string x;
  scanf("%d", &n);
  p *a = new p[n];
  for (int i = 0; i < n; i++) {
    cin >> m >> a[i].name;
    for (int j = 0; j < m; j++) {
      cin >> x;
      if (Taxi(x)) {
        if (a[i].taxi != 0) {
          a[i].taxi += 2;
        } else
          ++(a[i].taxi);
      } else if (pizza(x)) {
        if (a[i].pizza != 0) {
          a[i].pizza += 2;
        } else
          ++(a[i].pizza);
      } else {
        if (a[i].girl != 0) {
          a[i].girl += 2;
        } else
          ++(a[i].girl);
      }
    }
  }
  int maxTaxi = a[0].taxi, maxPizza = a[0].pizza, maxGirl = a[0].girl;
  int c1 = 0, c2 = 0, c3 = 0;
  for (int i = 1; i < n; i++) {
    if (a[i].taxi > maxTaxi) maxTaxi = a[i].taxi;
    if (a[i].pizza > maxPizza) maxPizza = a[i].pizza;
    if (a[i].girl > maxGirl) maxGirl = a[i].girl;
  }
  for (int i = 0; i < n; i++) {
    if (a[i].taxi == maxTaxi) c1++;
    if (a[i].pizza == maxPizza) c2++;
    if (a[i].girl == maxGirl) c3++;
  }
  cout << "If you want to call a taxi, you should call:";
  for (int i = 0; i < n; i++) {
    if (a[i].taxi == maxTaxi) {
      cout << " " << a[i].name;
      c1--;
      if (c1 == 0) {
        cout << ".";
        break;
      } else
        cout << ",";
    }
  }
  cout << "\nIf you want to order a pizza, you should call:";
  for (int i = 0; i < n; i++) {
    if (a[i].pizza == maxPizza) {
      cout << " " << a[i].name;
      c2--;
      if (c2 == 0) {
        cout << ".";
        break;
      } else
        cout << ",";
    }
  }
  cout << "\nIf you want to go to a cafe with a wonderful girl, you should "
          "call:";
  for (int i = 0; i < n; i++) {
    if (a[i].girl == maxGirl) {
      cout << " " << a[i].name;
      --c3;
      if (c3 == 0) {
        cout << '.';
        break;
      } else
        cout << ',';
    }
  }
  return 0;
}
