#include <bits/stdc++.h>
using namespace std;
template <class T>
T min(T a, T b, T c) {
  return min(a, min(b, c));
}
template <class T>
T max(T a, T b, T c) {
  return max(a, max(b, c));
}
template <class T>
void read(vector<T> &v) {
  T x;
  cin >> x;
  v.push_back(x);
}
double a, b, m, vx, vy, vz;
double Solve(double x0, double vx, double a) {
  double x = x0 + m * vx / (-vy);
  int d = floor(x / a);
  x -= d * a;
  if (abs(d) % 2 == 1) x = a - x;
  return x;
}
int main() {
  scanf("%lf%lf%Lf", &a, &b, &m);
  scanf("%lf%lf%Lf", &vx, &vy, &vz);
  printf("%.9f %.9f", Solve(a / 2, vx, a), Solve(0, vz, b));
  return 0;
}
