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(); int ans = Integer.MAX_VALUE; for(int a=0; a<=200; a++) { for(int b=0; b<=200; b++) { int tmpA = Math.round((100f * a / (a+b))); int tmpB = Math.round((100f * b / (a+b))); if(A == tmpA && B == tmpB) { ans = Math.min(ans, a+b); } } } System.out.println(ans); } }