#include <bits/stdc++.h>
using namespace std;
double mod(double x, int m);
int main() {
  double a, b, m, vx, vy, vz, t;
  cin >> a >> b >> m >> vx >> vy >> vz;
  t = -1 * m / vy;
  double dx = a / 2 + t * vx, dz = t * vz;
  dx = mod(dx, 2 * a);
  dz = mod(dz, 2 * b);
  cout << setprecision(7) << fixed;
  if (dx <= a)
    cout << dx << ' ';
  else
    cout << 2 * a - dx << ' ';
  if (dz <= b)
    cout << dz;
  else
    cout << 2 * b - dz;
  return 0;
}
double mod(double x, int m) {
  bool neg = 0;
  if (x < 0) {
    neg = 1;
    x = -x;
  }
  int q = x / m;
  x -= q * m;
  if (neg) x = (double)m - x;
  return x;
}
