#include <cstring>
#include <iostream>
#include<cstdlib>
#include<vector>

int main() 
{
    char input[100] = "102:330:3133:76531:451:000:12:44412";
    char *token = std::strtok(input, ":");
	std::vector<int> v;
	
    while (token != NULL) {
        v.push_back( std::strtol( token, NULL, 10 ));
        token = std::strtok(NULL, ":");
    }
	
	for(std::size_t i =0 ; i < v.size() ; ++i)
		std::cout << v[i] <<std::endl;
}