#include <bits/stdc++.h>
using namespace std;
const int MX = 1 << 22;
vector<pair<long long, int> > A;
void solve() {
  double a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double t = -m / vy;
  double x = a / 2.0 + vx * t, z = vz * t;
  while (x < 0 || x > a) {
    if (x < 0)
      x *= -1;
    else
      x = a - (x - a);
  }
  while (z < 0 || z > b) {
    if (z < 0)
      z *= -1;
    else
      z = b - (z - b);
  }
  printf("%.10lf %.10lf\n", x, z);
}
int main() { solve(); }
