#include <bits/stdc++.h>
#define ll long long
long long i,j;
long long max1=INT_MIN,min1=INT_MAX;
#define IO  ios::sync_with_stdio(0); cin.tie(0);cout.tie(0);
#define en "\n"
#define array(a,n) for(ll i=0;i<n;i++) cin>>a[i];
#define For(b) for (int i = 0; i < b; i++)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define take int t;cin>>t;while(t--)
using namespace std;
int main()
{
    IO
    
    take
    {
        string s;
        cin>>s;
        cout << s.size();
        cout<<en;
    }
        return 0;
}