#include <iostream>
#include <string>
int main(int argc, char *argv[])
{
const std::string line("I am a test, string");
const std::string::size_type pos = line.find_first_of(",");
std::cout << pos << " is " << line[pos] << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogICAgY29uc3Qgc3RkOjpzdHJpbmcgbGluZSgiSSBhbSBhIHRlc3QsIHN0cmluZyIpOwogICAgY29uc3Qgc3RkOjpzdHJpbmc6OnNpemVfdHlwZSBwb3MgPSBsaW5lLmZpbmRfZmlyc3Rfb2YoIiwiKTsKICAgIHN0ZDo6Y291dCA8PCBwb3MgPDwgIiBpcyAiIDw8IGxpbmVbcG9zXSA8PCAiXG4iOwogICAgcmV0dXJuIDA7Cn0=