import java.util.Scanner; public class Main_yukicoder338 { 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; for (int i = 0; i <= 200; i++) { for (int j = 0; j <= 200; j++) { int tmp = i + j; if (tmp == 0) { continue; } int tmpa = (int)Math.round((double)100 * i / tmp); int tmpb = (int)Math.round((double)100 * j / tmp); if (tmpa == a && tmpb == b) { min = Math.min(min, tmp); } } } System.out.println(min); sc.close(); } }