main.cpp
#define PROJECT 6
#include <iostream>
#include <algorithm>
#include <vector>
typedef unsigned long long ull;
using namespace std;
#if PROJECT == 1
int main() {
int l, a;
while (cin >> l >> a) {
int pos;
char dir;
cin >> pos >> dir;
}
}
#elif PROJECT == 2
#elif PROJECT == 3
#elif PROJECT == 4
#elif PROJECT == 5
#elif PROJECT == 6
int main() {
unsigned long long m, p, l, e ,r, s, n;
while (cin >> m >> p >> l >> e >> r >> s >> n) {
for (ull i = 0; i < n; i++) {
ull m1, p1, l1;
m1 = p / s;
p1 = l / r;
l1 = m * e;
m = m1; p = p1; l = l1;
}
cout << m << endl;
}
return 0;
}
#endif