14 lines
264 B
C++
14 lines
264 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
string a;
|
|
|
|
int main() {
|
|
cin >> a;
|
|
int size = a.size();
|
|
for (int i = size - 1; i >= 0; i--) {
|
|
if (a[i] != '.')cout << a[i];
|
|
if (i == size - 1) cout << ".";
|
|
}
|
|
return 0;
|
|
} |