#!/usr/bin/env python #coding:utf8 def read(): return map(int, raw_input().split()) def work((A, B)): total = 1 while 1: for a in range(total + 1): b = total - a if int ((100.0 * a) / (a + b) + 0.5) == A and \ int ((100.0 * b) / (a + b) + 0.5) == B: print total return total += 1 if __name__ == "__main__": work(read())