#include <bits/stdc++.h>
using namespace std;
const int maxn = 5010;
const int maxm = 300010;
const int INF = 999999999;
int a, b, m, x, y, z;
double sx, sy, sz;
int main() {
  while (scanf("%d%d%d", &a, &b, &m) == 3) {
    scanf("%d%d%d", &x, &y, &z);
    y = -y;
    sy = 1.0 * m / y;
    sz = sy * z;
    int tb = (int)(sz / b);
    if (tb % 2 == 0)
      sz = sz - tb * b;
    else
      sz = b - (sz - tb * b);
    if (x >= 0) {
      sx = sy * x;
      if (sx > a * 0.5) {
        sx -= a * 0.5;
        int ta = (int)(sx / a);
        if (ta % 2 == 1)
          sx -= ta * a;
        else
          sx = a - (sx - ta * a);
      } else
        sx += a * 0.5;
    } else {
      x = -x;
      sx = sy * x;
      if (sx > a * 0.5) {
        sx -= a * 0.5;
        int ta = (int)(sx / a);
        if (ta % 2 == 0)
          sx -= ta * a;
        else
          sx = a - (sx - ta * a);
      } else
        sx = a * 0.5 - sx;
    }
    printf("%.6lf %.6lf\n", sx, sz);
  }
  return 0;
}
