#include <bits/stdc++.h>
using namespace std;
struct point {
  long double x, y;
  point() {}
  point(long double _x, long double _y) : x(_x), y(_y) {}
  void input() { cin >> x >> y; }
  void output() { cout << fixed << setprecision(10) << x << " " << y << endl; }
  point friend operator+(const point &a, const point &b) {
    return point(a.x + b.x, a.y + b.y);
  }
  point friend operator*(const point &a, const long double &b) {
    return point(a.x * b, a.y * b);
  }
  long double norm() { return sqrt(x * x + y * y); }
};
int main() {
  long double a, b, c, d;
  point p, w, v;
  p.input();
  v.input();
  v = v * (1 / v.norm());
  w = point(-v.y, v.x);
  cin >> a >> b >> c >> d;
  (p + v * b).output();
  (p + w * (a / 2)).output();
  point m = p + w * (c / 2);
  m.output();
  (m + v * (-d)).output();
  m = p + w * (-c / 2);
  (m + v * (-d)).output();
  m.output();
  (p + w * (-a / 2)).output();
  return 0;
}
