#include<bits/stdc++.h>
using namespace std;
#define         int                 long long
#define         pb                  push_back
#define         all(x)              (x).begin(),(x).end()
#define         sz(x)               (int)((x).size())
#define         FOR(i,a,b)          for(int i=a;i<b;i++)
#define         vi                  vector<int>
#define         mem1(a)             memset(a,-1,sizeof(a))
#define         mem0(a)             memset(a,0,sizeof(a))
#define         mod                 1000000007
#define         endl                "\n"
void solve()
{
    string s;
    cin>>s;
    cout<<sz(s)<<endl;
}
signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);
    int T=1;
    cin>>T;
    while(T--){solve();}
    return 0;
}




