#include <iostream>
#include <regex>
#include <string>
using namespace std;

int main() {
	std::string input_seq = "CCCC";
	std::regex re("(?=(CCC)).");
	std::sregex_iterator next(input_seq.begin(), input_seq.end(), re);
	std::sregex_iterator end;
	while (next != end) {
	    std::smatch match = *next;
	    std::cout << match.str(1) << "\t" << "\t" << match.position() << "\t" << "\n";
	    next++;
	}
	return 0;
}