#include <iostream>
using namespace std;
void rotate(char *string) {
char *p = string;
char c;
if (!string) {
return;
}
while (*p) {
p++;
}
p--;
while (p > string) {
c = *p;
*p-- = *string;
*string++ = c;
}
}
int main() {
char word[80];
cin >> word;
cout << "Entered word: " << word << endl;
rotate(word);
cout << "Rotated word: " << word << endl;
}