// NOTE: it is recommended to use this even if you don't understand the following code.

#include <fstream>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main() {
    // uncomment the two following lines if you want to read/write from files
    // ifstream cin("input.txt");
    // ofstream cout("output.txt");

    int W, H;
    long long T;
    cin >> W >> H >> T;

    int x1, y1, vx, vy;
    cin >> x1 >> y1 >> vx >> vy;

    int x2, y2;
    cin >> x2 >> y2;

    long long ans = 0;


    // INSERT YOUR CODE HERE


    cout << ans << endl;

    return 0;
}
