import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] first = br.readLine().split(" ", 2); int a = Integer.parseInt(first[0]); int b = Integer.parseInt(first[1]); int min = Integer.MAX_VALUE; for (int i = 0; i <= 100; i++) { for (int j = 0; j <= 100; j++) { if (i == 0 && j == 0) { continue; } if (Math.round((100 * i) / (double)(i + j)) == a && Math.round((100 * j) / (double)(i + j)) == b) { min = Math.min(min, i + j); } } } System.out.println(min); } }