#include <iomanip>
#include <iostream>
#include <sstream>
int main()
{
std::ostringstream stream;
stream << std::showpos; // Always show sign
stream << std::setw(3); // Minimum 3 characters
stream << std::setfill( '0' ); // Zero-padded
stream << 1; // Expected output: "+01"
std::cout << stream.str(); // Output: "0+1"
return 0;
}
ICAgICNpbmNsdWRlIDxpb21hbmlwPgogICAgI2luY2x1ZGUgPGlvc3RyZWFtPgogICAgI2luY2x1ZGUgPHNzdHJlYW0+CiAgICAKICAgIGludCBtYWluKCkgCiAgICB7CiAgICAJc3RkOjpvc3RyaW5nc3RyZWFtIHN0cmVhbTsKICAgIAlzdHJlYW0gPDwgc3RkOjpzaG93cG9zOyAvLyBBbHdheXMgc2hvdyBzaWduCiAgICAJc3RyZWFtIDw8IHN0ZDo6c2V0dygzKTsgLy8gTWluaW11bSAzIGNoYXJhY3RlcnMKICAgIAlzdHJlYW0gPDwgc3RkOjpzZXRmaWxsKCAnMCcgKTsgLy8gWmVyby1wYWRkZWQKICAgIAlzdHJlYW0gPDwgMTsgLy8gRXhwZWN0ZWQgb3V0cHV0OiAiKzAxIgogICAgCQogICAgCXN0ZDo6Y291dCA8PCBzdHJlYW0uc3RyKCk7IC8vIE91dHB1dDogIjArMSIKICAgIAlyZXR1cm4gMDsKICAgIH0K