/* 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;
}
