#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

int main(void)
{
    int t;
    cin >> t;

    while(t--)
    {
        string s;
        cin >> s;

        cout << s.size() << endl;
    }

    return 0;
}
