#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double X = double(-m * vx) / vy + double(a) / 2;
  double Z = double(-m * vz) / vy;
  int cx = int((abs(X) - 1e-10) / a);
  int cz = int((abs(Z) - 1e-10) / b);
  double XX = abs(X) - cx * a;
  double ZZ = abs(Z) - cz * b;
  cout.precision(10);
  if (cx % 2 == 0)
    cout << fixed << XX;
  else
    cout << fixed << a - XX;
  cout << " ";
  if (cz % 2 == 0)
    cout << fixed << ZZ;
  else
    cout << fixed << b - ZZ;
  return 0;
}
