#include <iostream>
#include <string>
#include <cctype>
using namespace std;

int main() {
    string s;
    getline(cin, s);
    
    if (s.lenght() > 100) {
        cout << "eval";
        return 0;
    }
    
     for (char c : s) {
         if (!(isalphs(c) || c == ' ')) {
             cout << "eval";
             return 0;
         }
     }
     
     int count = 0;
     bool inWord = false;
     
     for(char c : s) {
         if (isalpha(c)) {
             if(!inWord) {
                 count++;
                 inWord = true;
                 
             }
         } else {
             inWord = false;
         }
     }
     
     cout << count;
     return 0;
     
     
}