#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
  ll t;
  cin>>t;

  while(t--)
  {
    string n;
    cin>>n;
    int count=0;
    
    cout<<n.length()<<endl;
  
  }
  return 0;
}