import java.util.Scanner; public class Main { public static int gcd(int m,int n){ int r; while(n > 0){ r=m%n; m=n; n=r; } return m; } public static void main(String[] args){ var sc=new java.util.Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int t=0; for(int i=0;i