#include <iostream>
#include <string>
void find_and_find_first_of(const std::string& haystack, const char* needle) {
std::cout << haystack.find(needle) << '\t'
<< haystack.find_first_of(needle) << '\n';
}
int main(int argc, char** argv) {
find_and_find_first_of("abc", "");
find_and_find_first_of("a", "");
find_and_find_first_of("", "");
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdm9pZCBmaW5kX2FuZF9maW5kX2ZpcnN0X29mKGNvbnN0IHN0ZDo6c3RyaW5nJiBoYXlzdGFjaywgY29uc3QgY2hhciogbmVlZGxlKSB7CiAgc3RkOjpjb3V0IDw8IGhheXN0YWNrLmZpbmQobmVlZGxlKSA8PCAnXHQnCiAgICAgICAgICAgIDw8IGhheXN0YWNrLmZpbmRfZmlyc3Rfb2YobmVlZGxlKSA8PCAnXG4nOwp9CmludCBtYWluKGludCBhcmdjLCBjaGFyKiogYXJndikgewogIGZpbmRfYW5kX2ZpbmRfZmlyc3Rfb2YoImFiYyIsICIiKTsKICBmaW5kX2FuZF9maW5kX2ZpcnN0X29mKCJhIiwgIiIpOwogIGZpbmRfYW5kX2ZpbmRfZmlyc3Rfb2YoIiIsICIiKTsKfQ==