#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int a,b,r;
ifstream f("cmmmdc.in");
ofstream g("cmmdc.out");
f >> a >> b;
while(b != 0)
{
r=a%b;
a=b;
b=r;
}
if(a<30000)
{
if(a==1)
{
g << "0";
}
else
{
g << a;
}
}
else
{
g << "Eroare";
}
f.close();
g.close();
return 0;
}
de ce 50 puncte ?
