import java.util.*; public class Exercise119{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); int ca = sc.nextInt(); int cb = sc.nextInt(); int min = 200; for(double i = 1; i < 200; i++){ for(double j = 1; j < 200; j++){ if(ca == (int)Math.round(i * 100 / (i + j)) && cb == (int)Math.round(j * 100 / (i + j))){ min = Math.min(min, (int)(i + j)); } } } System.out.println(min); } }