#include <bits/stdc++.h>   using namespace std;   int main() {     int n;     int ans = 0;     cin >> n;     string arr[11] = { ABSINTH ,  BEER ,     BRANDY ,  CHAMPAGNE ,  GIN ,  RUM ,                        SAKE ,     TEQUILA ,  VODKA ,   WHISKEY ,    WINE };     for (int i = 0; i < n; i++) {       string a;       cin >> a;       if (isdigit(a[0]) != 0) {         if (stoi(a) < 18) {           ans++;         }       } else {         for (int j = 0; j < 11; j++) {           if (a == arr[j]) {             ans++;           }         }       }     }     cout << ans;     return 0;   }   