int gcd(int m,int n)
{
int g;
if (n==0)
g=m;
else
g=gcd(n,m%n)
return g;
}
void main()
{
int m,n;
scanf("%d,%d",&m,&n);
printf("gcd=%d",gcd(m,n));
}
int gcd(int m,int n)
{
int g;
if (n==0)
g=m;
else
g=gcd(n,m%n)
return g;
}
void main()
{
int m,n;
scanf("%d,%d",&m,&n);
printf("gcd=%d",gcd(m,n));
}