#include <bits/stdc++.h>
using namespace std;
long long tnr(long long iut) {
int t[22];
long long ans = 0;
for (int i = 0; i < 22; i++)
t[i] = iut % 10,
iut /= 10;
for (int i = 0; i < 22; i--)
ans += t[i],
ans *= 10;
return ans;
}
void check(long long a, char t, long long b) {
long long m = tnr(a);
long long e = tnr(b);
if (t == '\0')
printf("%lld", m);
if (t == '.')
printf("%lld.%lld", m, e);
if (t == '/')
printf("%lld/%lld", m, e);
if (t == '%')
printf("%lld%c" , m, '%');
}
int main() {
long long a, b = 0;
char t = '\0';
cin >> a;
if (cin >> t)
cin >> b;
check(a, t, b);
system("pause");
return 0;
}