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

int main() {
	// your code goes here
	
	string str = "127[.0.0.1";
	size_t pos (0);
	cout << stoi(str, &pos);
	cout << "pos = " << pos;
	cout << "\n" << str ;
	
	return 0;
}