Obed

mail@pastecode.io avatar
unknown
plain_text
2 years ago
316 B
0
Indexable
Never
#include <iostream>
#include <string>


using namespace std;
int main()
{
	int N;
	string stroka;
	
	getline(cin, stroka);
	cin >> N;

	for (int i = 0; i < stroka.size(); i++)
	{
		if (stroka[i] != ' ') {
			stroka[i] += N;
			if (stroka[i] > 122) stroka[i] -= 26;
		}
	}
	
	cout << stroka;

}