#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
istringstream iss("2.832 1.3067 nana 1.678");
double num = 0;
while(iss >> num || !iss.eof()) {
if(iss.fail()) {
iss.clear();
string dummy;
iss >> dummy;
continue;
}
cout << num << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoKCWlzdHJpbmdzdHJlYW0gaXNzKCIyLjgzMiAxLjMwNjcgbmFuYSAxLjY3OCIpOwoJZG91YmxlIG51bSA9IDA7Cgl3aGlsZShpc3MgPj4gbnVtIHx8ICFpc3MuZW9mKCkpIHsKCQlpZihpc3MuZmFpbCgpKSB7CgkJCWlzcy5jbGVhcigpOwoJCQlzdHJpbmcgZHVtbXk7CgkJCWlzcyA+PiBkdW1teTsKCQkJY29udGludWU7CgkJfQoJCWNvdXQgPDwgbnVtIDw8IGVuZGw7Cgl9CglyZXR1cm4gMDsKfQ==