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

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