#include<iostream> #include<cmath> using namespace std; int main() { int a,b; cin>>a; cin>>b; if((max(a,b)%min(a,b))==0) { cout<<max(a,b)<<endl; } else { int i; for(i=1;i<=max(a,b);i++) { ...