// Thomas Lukas
// 8/25/2020
// Code for CIS 3362 Homework #1 Problems #1, 2

#include <stdio.h>
#include <string.h>

int main(void)
{
	int x,y,length;
    char text[500];

	scanf("%s", text);
	length = strlen(text);

    // Try each shift.
	for(x = 0; x < 26; x++)
	{
		printf("%d  :", x);

		// Decrypt each letter. We just add x instead of subtracting.
		for(y = 0; y < length; y++)
        {
			printf("%c", (text[y]- 'a'+ x) % 26 +'a');
        }

		printf("\n");
	}
	return 0;
}
