import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); scan.close(); if(A < B) { int t = A; A = B; B = t; } int min = 200; for(int a = 1; a <= 100; a++) { for(int b = 0; b <= 100; b++) { double k1 = (double) 100 * a / (a + b); double k2 = (double) 100 * b / (a + b); int k3 = (int)Math.round(k1); int k4 = (int)Math.round(k2); if(k3 == A && k4 == B) { if(min > a + b) { min = a + b; } } } } System.out.println(min); } }