#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long double a, b, m;
  cin >> a >> b >> m;
  long double vx, vy, vz;
  cin >> vx >> vy >> vz;
  long double x = a / 2;
  long double z = 0;
  long double t = -m / vy;
  if (vx > 0) {
    x = x + (t * vx);
    while (x > 2 * a) x -= 2 * a;
  } else {
    long double temp = t * vx;
    temp = abs(temp);
    x = abs(temp - x);
    while (x > 2 * a) x -= 2 * a;
  }
  z = abs(t * vz);
  while (z > 2 * b) z -= 2 * b;
  if (x > a) x = abs(2 * a - x);
  if (z > b) z = abs(2 * b - z);
  cout << fixed << setprecision(12) << endl;
  cout << x << " " << z << endl;
  return 0;
}
