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

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

	scanf("%s", text);
	length = strlen(text);

	// Just hard code the keys given in the question here.
	for (x=0; x<length; x++)
	{
	 printf("%c", (7*(text[x]-'a')+22) %26 + 'a');
	}

	printf("\n");

 return 0;
}
