#include <bits/stdc++.h>

using namespace std;
#define F first
#define S second
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define eb emplace_back
#define pb push_back
#define MAX(x) *max_element(all(x))
#define MIN(x) *min_element(all(x))
#define rep(i, a, b) for(ll (i) = (a); i < b; i ++)
#define repr(i, a, b) for(ll (i) = (a); i > b; i --)
typedef long long ll;
typedef long double ld;
const ll mod = 1e9 + 7;

ll solve() {
    string s;
    cin >> s;
    cout << s.size() << "\n";
    return 0;
}

signed main() {
#ifdef DEBUG
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    ll tt = 1;
    cin >> tt;
    while (tt--) {
        solve();
    }
    return 0;
}