// Arup Guha
// 8/30/2016
// Program to aid decryption for CIS 3362 Week One Assignment - Questions 1 and 2.

#include <stdio.h>
#include <string.h>

int main() {

    char cipher[1000];
    scanf("%s", cipher);

    int i, j;

    // Try each shift.
    for (i=0; i<26; i++) {
        printf("%d\t", i);
        for (j=0; j<strlen(cipher); j++)
            printf("%c", (cipher[j]-'a'+i)%26 + 'a');
        printf("\n");
    }
    printf("\n");
    return 0;
}
