#include <iostream>
#include <sstream>
#include <complex>
int main()
{
std::istringstream buf("67 - 23i");
char minus, i;
double re, im;
buf >> re >> minus >> im >> i;
if(!buf || minus != '-' || i != 'i')
std::cout << "Parse error\n";
else
std::cout << std::complex<double>(re, im) << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPGNvbXBsZXg+CgppbnQgbWFpbigpCnsKICAgIHN0ZDo6aXN0cmluZ3N0cmVhbSBidWYoIjY3IC0gMjNpIik7CgogICAgY2hhciBtaW51cywgaTsKICAgIGRvdWJsZSByZSwgaW07CiAgICBidWYgPj4gcmUgPj4gbWludXMgPj4gaW0gPj4gaTsKICAgIGlmKCFidWYgfHwgbWludXMgIT0gJy0nIHx8IGkgIT0gJ2knKQogICAgICAgIHN0ZDo6Y291dCA8PCAiUGFyc2UgZXJyb3JcbiI7CiAgICBlbHNlCiAgICAgICAgc3RkOjpjb3V0IDw8IHN0ZDo6Y29tcGxleDxkb3VibGU+KHJlLCBpbSkgPDwgJ1xuJzsKfQo=