#include <bits/stdc++.h>
using namespace std;
long double px, py, vx, vy;
long double a, b, c, d;
void rotate(long double &x, long double &y) {
  long double angle = atan2(vy, vx);
  long double s = sin(angle);
  long double c = cos(angle);
  long double xnew = x * c - y * s;
  long double ynew = x * s + y * c;
  x = xnew;
  y = ynew;
}
int main() {
  cin >> px >> py >> vx >> vy;
  cin >> a >> b >> c >> d;
  long double x, y;
  cout << fixed;
  cout.precision(13);
  x = b;
  y = 0;
  rotate(x, y);
  cout << x + px << " " << y + py << endl;
  x = 0;
  y = a / 2;
  rotate(x, y);
  cout << x + px << " " << y + py << endl;
  x = 0;
  y = c / 2;
  rotate(x, y);
  cout << x + px << " " << y + py << endl;
  x = -d;
  y = c / 2;
  rotate(x, y);
  cout << x + px << " " << y + py << endl;
  x = -d;
  y = -c / 2;
  rotate(x, y);
  cout << x + px << " " << y + py << endl;
  x = 0;
  y = -c / 2;
  rotate(x, y);
  cout << x + px << " " << y + py << endl;
  x = 0;
  y = -a / 2;
  rotate(x, y);
  cout << x + px << " " << y + py << endl;
}
