import java.util.*; import java.math.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a == 100 || b == 100) { System.out.println(1); return; } if(a == 0 && b == 0) { System.out.println(0); return; } int MAX = Integer.MAX_VALUE; for(int i = 1;i < MAX ; i++) { for(int j = 0; i + j < MAX; j++) { double Aa = 100 * i / (double)(i + j); double Bb = 100 * j / (double)(i + j); int A = (int)Aa; int B = (int)Bb; if(Aa - A >= 0.5) A++; if(Bb - B >= 0.5) B++; if(A == a && B == b) MAX = i + j; if(A < a) break; } } System.out.println(MAX); } }