#include <iostream> using namespace std; int main(){ int m,n; cin>>m>>n; int r=0; r=m%n; while(0!=r) { m=n; n=r; r=m%n; } cout<<"max"<<n<<endl; }