#include <bits/stdc++.h>
using namespace std;
double startX, startY, vecX, vecY, a, b, c, d;
int main() {
  cin >> startX >> startY >> vecX >> vecY >> a >> b >> c >> d;
  double length = sqrt(vecX * vecX + vecY * vecY);
  cout << setprecision(12) << fixed << startX + b * vecX / length << " "
       << startY + b * vecY / length << endl;
  cout << setprecision(12) << fixed << startX - (a / 2) * (vecY / length) << " "
       << startY + (a / 2) * (vecX / length) << endl;
  cout << setprecision(12) << fixed << startX - (c / 2) * (vecY / length) << " "
       << startY + (c / 2) * (vecX / length) << endl;
  cout << setprecision(12) << fixed
       << startX - d * vecX / length - (c / 2) * (vecY / length) << " "
       << startY - (d * vecY / length) + ((c / 2) * (vecX / length)) << endl;
  cout << setprecision(12) << fixed
       << startX - d * vecX / length + (c / 2) * (vecY / length) << " "
       << startY - d * vecY / length - (c / 2) * (vecX / length) << endl;
  cout << setprecision(12) << fixed << startX + (c / 2) * (vecY / length) << " "
       << startY - (c / 2) * (vecX / length) << endl;
  cout << setprecision(12) << fixed << startX + (a / 2) * (vecY / length) << " "
       << startY - (a / 2) * (vecX / length) << endl;
  return 0;
}
