func_code_string: #include <bits/stdc++.h>   using namespace std;   int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }   int calc(int a, int x, int n) { return max(0, min(x - (a + 1) / 2, n - a)); }   void solve(istream &in, ostream &out) {     int n, m, x, y, a, b;     in >> n >> m >> x >> y >> a >> b;     int d = gcd(a, b);     a /= d;     b /= d;     int t = min(n / a, m / b);     a *= t;     b *= t;     int x1 = calc(a, x, n);     int y1 = calc(b, y, m);     int x2 = x1 + a;     int y2 = y1 + b;     out << x1 <<     << y1 <<     << x2 <<     << y2 << endl;   }   int main() {     solve(cin, cout);     return 0;   }   