import std.stdio, std.conv, std.math, std.string, std.range, std.array, std.algorithm; int calc(int a, int b) { if(a == 0 && b == 0) { return 0; } float t = a.to!float * 100 / (a+b); return (t+0.5).to!int; } void main() { auto buf = readln().strip().split().map!(to!int)().array(); immutable A = buf[0]; immutable B = buf[1]; int a, b, va, vb; while((va = calc(a,b)) != A || (vb = calc(b,a)) != B) { if(va < A) { a ++; } else { if(vb < B) { b ++; } else { a ++; } } } writeln(a + b); }