tax = ->(x, t){
     (x + x * t * 0.01).to_i
}
loop {
    a, b, c = gets.split.map(&:to_i)
    break if a == 0 && b == 0 && c == 0
    ans = -1
    (1..c).each{|x|
        (1..c).each{ |y|
            if tax[x,a] + tax[y,a] == c
                ans = [ans, tax[x,b] + tax[y,b]].max
            end
        }
    }
    puts ans
}
