#include <bits/stdc++.h>
using namespace std;
const int N = 201111, D = 20;
void cal(double& a, int h) {
  int t = a / h;
  a -= t * h;
  a = fabs(a);
  if (t & 1) a = h - a;
}
int main() {
  int a, b, m;
  scanf("%d%d%d", &a, &b, &m);
  int vx, vy, vz;
  scanf("%d%d%d", &vx, &vy, &vz);
  double t = m * 1.0 / -vy;
  double x = a / 2.0 + t * vx;
  double z = t * vz;
  cal(x, a);
  cal(z, b);
  printf("%.9f %.9f\n", x, z);
  return 0;
}
