``cpp
#include <bits/stdc++.h>
#define intt register int
#define ll long long
using namespace std;
string a;
int main() {
ios::sync_with_stdio(0);
ios_base::sync_with_stdio(0);
cin.tie(NULL);
cout.tie(NULL);
getline(cin, a);
int len = a.size(), lenk = 0, lai = 0;
for (int i = 0; i < len; i++) {
if (a[i] == ' ') {
for (int j = lenk + lai - 1; j >= lai; j--) {
cout << a[j];
}
lenk = 0;
cout << "\n";
lai = i+1;
} else {
lenk++;
}
}
for (int j = lenk + lai - 1; j >= lai; j--) {
cout << a[j];
}
return 0;
}
``
求调