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=1; a<=100; a++) { for(int b=1; b<=100; 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); } }