
#include<bits/stdc++.h>
#include <iostream>
#include <ctype.h>
#include <math.h>
#include <set>
#include<string.h>
#include<stdio.h>
 
using namespace std;
#define boost std::ios::sync_with_stdio(false);
 
typedef long long ll;
 
int t;
const int N = 1e3 + 6;
const int MOD = 998244353;

int GCD(int a, int b)
{
    if(b == 0)
    return a;
    else 
     return GCD(b,a%b);
}

 
int pow(int a, int b, int m)
{
	int ans=1;
	while(b)
	{
		if(b&1)
			ans=(ans*a)%m;
		b/=2;
		a=(a*a)%m;
	}
	return ans;
}
 
int modinv(int k)
{
	return pow(k, MOD-2, MOD);
}



int main()
{
   
    boost;
    cin>>t;
    while(t-- > 0)
    {
        string s;
    cin>>s;
    cout<<(s.size())<<endl;
    }
    return 0;
}