/* Author haleyk10198 */
/* 作者: haleyk10198 */
#include <bits/stdc++.h>
#define MOD 1000000007
#define LINF (1LL<<60)
#define INF 2147483647
#define PI 3.1415926535897932384626433
#define ll long long
#define pii pair<int,int>
#define mp(x,y) make_pair((x),(y))
using namespace std;
string itos(int x){
stringstream ss;
ss<<x;
return ss.str();
}
const string numeric = "1234567890.";
int main(){
//freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
//ios_base::sync_with_stdio(false);
string str;
while(getline(cin, str, '\n')){
int pos = 0, nxt;
vector<float> v;
while(true){
nxt = str.find_first_not_of(numeric, pos);
if(nxt == string::npos)
nxt = str.length();
v.push_back(stof(str.substr(pos, nxt - pos)));
if(nxt == str.length())
break;
pos = str.find_first_of(numeric, nxt);
if(pos == string::npos)
break;
}
for(int i = 0 ; i < v.size(); i++)
cout << v[i] << (i+1 == v.size()? '\n': ' ');
}
return 0;
}
LyogQXV0aG9yIGhhbGV5azEwMTk4ICovCi8qIOS9nOiAhTogIGhhbGV5azEwMTk4ICovCiNpbmNsdWRlIDxiaXRzL3N0ZGMrKy5oPgoKI2RlZmluZSBNT0QgMTAwMDAwMDAwNwojZGVmaW5lIExJTkYgKDFMTDw8NjApCiNkZWZpbmUgSU5GIDIxNDc0ODM2NDcKI2RlZmluZSBQSSAzLjE0MTU5MjY1MzU4OTc5MzIzODQ2MjY0MzMKI2RlZmluZSBsbCBsb25nIGxvbmcKI2RlZmluZSBwaWkgcGFpcjxpbnQsaW50PgojZGVmaW5lIG1wKHgseSkgbWFrZV9wYWlyKCh4KSwoeSkpCgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RyaW5nIGl0b3MoaW50IHgpewoJc3RyaW5nc3RyZWFtIHNzOwoJc3M8PHg7CglyZXR1cm4gc3Muc3RyKCk7Cn0KCmNvbnN0IHN0cmluZyBudW1lcmljID0gIjEyMzQ1Njc4OTAuIjsKCmludCBtYWluKCl7CgkvL2ZyZW9wZW4oImlucHV0LnR4dCIsInIiLHN0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