文件目录

#include <iostream>
#include <sstream>
using namespace std;
int main()
{
    string s, k;
    getline(cin, s);
    istringstream ss(s);
    bool f = true;
    while (ss >> k)
        if (f)
        {
            cout << k.size();
            f = false;
        }
        else
            cout << ',' << k.size();
    return 0;
}