#include <stdio.h>

int main(void) {
	const char my_string[] = "[1,2,3,4,5]";
    int a,b,c,d,e;
    sscanf(my_string, "[%d,%d,%d,%d,%d]", &a, &b, &c, &d, &e);
    printf("%d %d %d %d %d\n", a, b, c, d, e);
	return 0;
}
