import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int min = Integer.MAX_VALUE; if(A==0||B==0){ min=1; }else{ int up=201; for(int i=1; i