#include <iostream>
#include <sstream>
#include <string>
int main()
{
std::istringstream iss("2.832 1.3067 nana1.678 x-1E2 xxx.05 meh.ugh");
double num = 0;
char ignored;
while (iss >> num && std::cout << num << '\n' ||
(iss.clear(), iss) >> ignored)
;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KCmludCBtYWluKCkKewogICAgc3RkOjppc3RyaW5nc3RyZWFtIGlzcygiMi44MzIgMS4zMDY3IG5hbmExLjY3OCB4LTFFMiB4eHguMDUgbWVoLnVnaCIpOwogICAgZG91YmxlIG51bSA9IDA7CiAgICBjaGFyIGlnbm9yZWQ7CiAgICB3aGlsZSAoaXNzID4+IG51bSAmJiBzdGQ6OmNvdXQgPDwgbnVtIDw8ICdcbicgfHwKICAgICAgICAgICAoaXNzLmNsZWFyKCksIGlzcykgPj4gaWdub3JlZCkKICAgIAk7Cn0=