#include <stdio.h>

int main()
{
	char	src[] = "timeismoney";
	char	dst[100];
	int	c;
	int	i;

	for (i = 0; src[i]; i++) {
		c = (src[i] - 'a') + (i + 1);
		while (26 <= c) c -= 26;
		dst[i] = 'a' + c;
	}
	dst[i] = '\0';
	printf("%s\n", dst);
	for (i = 0; dst[i]; i++) {
		c = (dst[i] - 'a') - (i + 1);
		while (c < 0) c += 26;
		printf("%c", 'a' + c);
	}
	printf("\n");
	return 0;
}
