#include <bits/stdc++.h>
using namespace std;
int a, b, m, vx, vy, vz;
int main() {
  cin >> a >> b >> m;
  cin >> vx >> vy >> vz;
  cout << fixed << setprecision(8);
  vy = abs(vy);
  double xpos = a / 2.0, height = a;
  double dis = (double)m;
  while (dis > 0.0000001) {
    double calcdis = min((double)vy, (double)dis);
    double xchange = ((double)vx / (double)vy) * calcdis;
    if ((xpos + xchange) > height) {
      dis -= (height - xpos) * vy / vx;
      xpos = height;
      vx *= -1;
    } else if (xpos + xchange < 0.0) {
      dis -= (xpos)*vy / abs(vx);
      xpos = 0.0;
      vx *= -1;
    } else {
      xpos += xchange;
      dis -= calcdis;
    }
  }
  double zpos = 0.0;
  dis = m, height = b;
  while (dis > 0.0000001) {
    double calcdis = min((double)vy, (double)dis);
    double xchange = ((double)vz / (double)vy) * calcdis;
    if ((zpos + xchange) > height) {
      dis -= (height - zpos) * vy / vz;
      zpos = height;
      vz *= -1;
    } else if (zpos + xchange < 0.0) {
      dis -= (zpos)*vy / abs(vz);
      zpos = 0.0;
      vz *= -1;
    } else {
      zpos += xchange;
      dis -= calcdis;
    }
  }
  cout << xpos << ' ' << zpos << endl;
}
