#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
long double x = 0.0,y = 0.0;
int check(){
if(x + y < 0.001) return 0;
return 1;
}
double ans = 0.0;
long double vx = 15.0,vy = 17.0;
int main(){
do{
long double tx = vx > 0 ? fabs((343720.0 - x)/vx) : fabs(x/vx);
long double ty = vy > 0 ? fabs((233333.0 - y)/vy) : fabs(y/vy);
cout << x << " " << y << endl;
cout << tx << " " << ty << endl;
if(tx < ty){
long double y0 = y;
if(vx > 0) x = 343720.0;
else x = 0.0;
vx = -vx;