#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long a, b, m;
  long long vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  long double x = a / 2.0, y = m * 1.0, z = 0;
  while (true) {
    long double t1 = 1e18, t2 = 1e18, t3 = 1e18;
    if (vx < 0)
      t1 = x / abs(vx);
    else if (vx > 0)
      t1 = (a - x) / vx;
    t2 = y / (abs(vy));
    if (vz < 0)
      t3 = z / abs(vz);
    else if (vz > 0)
      t3 = (b - z) / vz;
    if (t2 <= t1 && t2 <= t3) {
      cout << fixed << setprecision(12) << x + vx * t2 << " " << z + vz * t2;
      return 0;
    }
    if (abs(t1 - t3) < 1e-8) {
      x += vx * t1;
      y += vy * t1;
      z += vz * t1;
      vx *= -1;
      vz *= -1;
    } else if (t1 < t3) {
      x += vx * t1;
      y += vy * t1;
      z += vz * t1;
      vx *= -1;
    } else {
      x += vx * t3;
      y += vy * t3;
      z += vz * t3;
      vz *= -1;
    }
  }
}
