#include using namespace std; int main() { string S; cin >> S; for (int i = S.size() - 1; i >= 0; i--) cout << S[i] << endl; }