#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
int main() {
    int t;
    cin >> t;
    while (t--) {
        string s;
        cin >> s;
        cout << s.length() << '\n';
    }
}