#include <bits/stdc++.h>
using namespace std;
double adjust(double maxValue, double currentValue) {
  while (currentValue < 0 || currentValue > maxValue) {
    if (currentValue < 0)
      currentValue = -currentValue;
    else
      currentValue = 2 * maxValue - currentValue;
  }
  return currentValue;
}
int main() {
  double a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double requiredTime = -m / vy;
  double X = a / 2.0 + requiredTime * vx, Z = requiredTime * vz;
  X = adjust(a, X);
  Z = adjust(b, Z);
  cout << setprecision(10) << fixed << X << " " << Z << endl;
}
