#include <iostream>
using namespace std;
string encryptCaesar(string message, int key) {
string result = "";
char encrypted;
key %= 26;
for(char letter : message) {
encrypted = letter + key;
if(encrypted > 'z') {
encrypted = encrypted - 'z' + 'a' - 1;
}
result += encrypted;
}
return result;
}
int main() {
string message = "alamakota";
int key = 3;
string encrypted = encryptCaesar(message, key);
cout << encrypted << endl;
return 0;
}