#include <stdio.h>

int main(void) {
      for (int i=0; ; i++){
      	double x, y, v;
      	int res = fscanf(stdin, "%lf %lf %*f  %lf", &x, &y, &v);
      	if (res == EOF) break;
        if (res != 3) {
        	fscanf(stdin, "%*[^\n]");
        } else {
        	printf("%f %f %f\n", x, y, v);
        }
      }
	return 0;
}
