#include #include #include using namespace std; void increment(string &key){ for (int i=key.size(); i--;){ if (key[i]!='z') {++key[i];break;} key[i]='a'; } } int main(){ int n; cin>>n; while (n--){ string s; cin>>s; s.pop_back(); if (s.find('.')!=string::npos){ while (s.back()=='0') s.pop_back(); if (s.back()=='.') s.pop_back(); } for (auto &i: s) i=(i=='.'?'a':'z'-i+'0'); cout<