#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main() {
string stuff = "5x^9";
istringstream sss(stuff);
double coeff;
char x, sym;
int degree;
sss >> coeff >> x >> sym >> degree;
cout << "the coeff " << coeff << endl;
cout << "the x " << x << endl;
cout << "the ^ thingy " << sym << endl;
cout << "the exponent " << degree << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8c3N0cmVhbT4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXN0cmluZyBzdHVmZiA9ICI1eF45IjsKCWlzdHJpbmdzdHJlYW0gc3NzKHN0dWZmKTsKCWRvdWJsZSBjb2VmZjsKCWNoYXIgeCwgc3ltOwoJaW50IGRlZ3JlZTsKCQoJc3NzID4+IGNvZWZmID4+IHggPj4gc3ltID4+IGRlZ3JlZTsKCWNvdXQgPDwgInRoZSBjb2VmZiAiIDw8IGNvZWZmIDw8IGVuZGw7Cgljb3V0IDw8ICJ0aGUgeCAiIDw8IHggPDwgZW5kbDsKCWNvdXQgPDwgInRoZSBeIHRoaW5neSAiIDw8IHN5bSA8PCBlbmRsOwoJY291dCA8PCAidGhlIGV4cG9uZW50ICIgPDwgZGVncmVlIDw8IGVuZGw7CglyZXR1cm4gMDsKfQ==