#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double time = -m / vy;
  int sign[] = {-1, 1};
  double x = a / 2.0;
  int iter = 0;
  double x_time;
  if (vx > 0 || vx < 0) x_time = fabs(a / vx);
  double rem_time = time;
  double eps = 1e-12;
  while (vx > 0 || vx < 0) {
    double t;
    iter++;
    if (iter == 1) {
      t = x_time / 2.0;
    } else
      t = x_time;
    if (t > rem_time) t = rem_time;
    x += sign[(iter % 2)] * t * vx;
    rem_time -= t;
    if (rem_time < eps) break;
  }
  double z = 0.;
  iter = 0;
  double z_time;
  if (vz > 0) z_time = fabs(b / vz);
  rem_time = time;
  while (vz > 0) {
    double t;
    iter++;
    if (z_time > rem_time) z_time = rem_time;
    z += sign[iter % 2] * z_time * vz;
    rem_time -= z_time;
    if (rem_time < eps) break;
  }
  printf("%.11f %.11f", x, z);
  cin >> vx;
  return 0;
}
