#include<stdio.h>
#include<stdlib.h>int main()
{ int n; scanf("%d",&n); getchar(); int a; int i, j; char m[200]; while (n--) { a = 0; gets(m); j = strlen(m); for (i = 0; i < j; i++) { if (m[i] <= 122 && m[i]>=97) { a++; } } a = a % 26; switch (a) { case 0:printf("z"); break; case 1:printf("a"); break; case 2:printf("b"); break; case 3:printf("c"); break; case 4:printf("d"); break; case 5:printf("e"); break; case 6:printf("f"); break; case 7:printf("g"); break; case 8:printf("h"); break; case 9:printf("i"); break; case 10:printf("j"); break; case 11:printf("k"); break; case 12:printf("l"); break; case 13:printf("m"); break; case 14:printf("n"); break; case 15:printf("o"); break; case 16:printf("p"); break; case 17:printf("q"); break; case 18:printf("r"); break; case 19:printf("s"); break; case 20:printf("t"); break; case 21:printf("u"); break; case 22:printf("v"); break; case 23:printf("w"); break; case 24:printf("x"); break; case 25:printf("y"); break; } printf("\n"); } getchar(); return 0;}