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(); int MAX = Integer.MAX_VALUE; for(int i = 0;i < MAX ; i++) { for(int j = 0; i + j < MAX; j++) { if(i + j == 0) continue; 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); } }