#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
int a, b, c, d;
char e, f;
cin >> a >> e >> b >> c >> f >> d;
int g = a * c;
int h = b * d;
int i = __gcd(g, h);
cout << h / i << " " << g / i;
return 0;
}
请问最后那行输出是怎样确定顺序的(已A)