#include #define int long long using namespace std; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; } int lcm(int a,int b) { if((double)a*b/__gcd(a,b)>2e18) return 1LL<<60; return a/__gcd(a,b)*b; } int calc(int N,int x) { return (N-1)/x+1; } signed main() { cin.tie(0); ios::sync_with_stdio(false); int T,A,B; cin>>T>>A>>B; int L=lcm(A,B); cout<