#include <iostream>
using namespace std;
const int MAX_SIZE = 100;
int main() {
int num, registers[MAX_SIZE], i = 0;
char skip;
while (cin >> num) {
registers[i] = num;
cin >> skip;
++i;
}
for (int j = i - 1; j >= 0; --j) {
cout << registers[j] * 2;
if (j) {
cout << ',';
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IE1BWF9TSVpFID0gMTAwOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbnVtLCByZWdpc3RlcnNbTUFYX1NJWkVdLCBpID0gMDsKICAgIGNoYXIgc2tpcDsKICAgIHdoaWxlIChjaW4gPj4gbnVtKSB7CiAgICAgICAgcmVnaXN0ZXJzW2ldID0gbnVtOwogICAgICAgIGNpbiA+PiBza2lwOwogICAgICAgICsraTsKICAgIH0KICAgIGZvciAoaW50IGogPSBpIC0gMTsgaiA+PSAwOyAtLWopIHsKICAgICAgICBjb3V0IDw8IHJlZ2lzdGVyc1tqXSAqIDI7CiAgICAgICAgaWYgKGopIHsKICAgICAgICAJY291dCA8PCAnLCc7CiAgICAgICAgfQogICAgfQogICAgcmV0dXJuIDA7Cn0=