#include <cstdio>
#include <iostream>
#include <vector>
#include <string>

typedef struct {
	double x1,y1,x2,y2; } Point;

void readvals(const char*s,std::vector<Point>&v)
{
    int n = 0;
    Point p;
    while (2 == sscanf(s += n, "%*[^']'%lf','%lf'%n", &p.x1, &p.y1, &n)
    		&&
    	   2 == sscanf(s += n, "%*[^']'%lf','%lf'%n", &p.x2, &p.y2, &n)
    	)
       v.push_back(p);
}

int main()
{
  std::vector<Point> v;
  std::string s="[['1','2'],['3','4'],['5','6'],['7','8'],['9','10'],['10','11'],['12','13'],['14','15']]";
  readvals(s.c_str(),v);
  for(int i=0;i<v.size()-1;++i) 
  std::cout << v[i].x1 << v[i].y1 << v[i].x2 << v[i].y2 << " " 
            << v[i+1].x1 << v[i+1].y1 << v[i+1].x2 << v[i+1].y2 << '\n';
  return 0;
}
