#include <iostream>
#include <bits/stdc++.h>
using namespace std;

void amain()
{
    long long n; cin >> n;
    if (n%4==0) cout << "Even" << endl;
    if (n%4==2) cout << "Same" << endl;
    if (n%2) cout << "Odd" << endl;
    return;

}

int main()
{
    ios_base::sync_with_stdio(0);
    int t; cin >> t;
    while (t--) amain();
    return 0;
}

#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using ull = unsigned long long;
using ld = long double;

#define all(a) (a).begin(), (a).end()
#define mp make_pair

template<typename T1, typename T2> 
inline void chkmin(T1& x, const T2& y) {
    if (y < x) x = y;
}

template<typename T1, typename T2>
inline void chkmax(T1& x, const T2& y) {
    if (x < y) x = y;
}

int getLen(ll x) {
    int ans = 0;
    while (x) {
        ans++;
        x /= 10;
    }
    return ans;
}

int getPow(int len) {
    int ans = 1;
    for (int i = 0; i < len; ++i) {
        ans *= 10;
    }
    return ans;
}

ll get(ll x) {
    return x * getPow(getLen(x)) + x;
}

signed main() {
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    cout.precision(20), cout.setf(ios::fixed);
    ll n;
    cin >> n;
    int ans = 0;
    int x = 1;
    while (true) {
        ll have = get(x);
        if (have > n) break;
        ++ans;
        ++x;
    }
    cout << ans << endl;
    return 0;
}