using namespace std; int gcd(int a,int b) { return __gcd(a,b); } int main() { int a,b; cin>>a>>b; cout<<gcd(a,b); }