#include <bits/stdc++.h>
using namespace std;
void solve() {
  double a, b, m;
  cin >> a >> b >> m;
  double vx, vy, vz;
  cin >> vx >> vy >> vz;
  double x = a / 2, y = m, z = 0;
  for (long long i = 0; i < 1e5; ++i) {
    double reqdt = -y / vy;
    if (vx > 0) {
      reqdt = min(reqdt, (a - x) / vx);
    } else if (vx < 0) {
      reqdt = min(reqdt, -x / vx);
    }
    if (vz > 0) {
      reqdt = min(reqdt, (b - z) / vz);
    } else {
      reqdt = min(reqdt, -z / vz);
    }
    x += reqdt * vx;
    y += reqdt * vy;
    z += reqdt * vz;
    if (x == 0 or x == a) {
      vx = -vx;
    } else if (z == 0 or z == b) {
      vz = -vz;
    }
  }
  cout << fixed << setprecision(12) << x << ' ' << z << '\n';
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
