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 ((100 * i + (i + j) / 2) / (i + j) == a && (100 * j + (i + j) / 2) / (i + j) == b) { min = Math.min(min, i + j); } } } System.out.println(min); } }