#include<stdio.h>
int fun(char *s, int n) {
int r = 0;
long res = 0l;
int pos = 1;
if (s[0] == '-')
r = n - 1;
else
r = n;
for (int i = 0; i < r; i++) {
res += (s[n - 1 - i] - 48) * pos;
pos *= 10;
}
return s[0] == '-' ? -res : res;
}
int main() {
char s[20];
gets(s);
int n = strlen(s);
long res = fun(s, n);
//for(int i=0;i<n;i++)
printf("%d,", res);
}