use std::io::Read; use std::cmp::{min, max}; fn eat(x: isize, p: isize) -> isize { (100+p) * x / 100 } fn takeout(x: isize, q: isize, a: isize) -> isize { (100+q) * x / 100 + a } fn main() { let mut pqa = String::new(); std::io::stdin().read_to_string(&mut pqa).ok(); let pqa: Vec = pqa.trim().split('\n').next().unwrap().trim().split_whitespace().map(|i| i.parse::().unwrap()).collect(); let p = pqa[0]; let q = pqa[1]; let a = pqa[2]; if p == q { println!("{}", if a == 0 { 0 } else { 10i32.pow(9) }); } else if q > p && a > 0 { println!("{}", 10i32.pow(9)); } else { let mut switched_idx: isize = 0; for i in 0..100_000 { let start: isize = i * 10_000 + 1; let end: isize = (i+1) * 10_000; if (eat(start, p) - takeout(start, q, a)) * (eat(end, p) - takeout(end, q, a)) <= 0 { switched_idx = i; break; } } let mut result = 0; for i in max(0, switched_idx-1)..=min(100_000-1, switched_idx+1) { for j in 0..10_000 { result += if eat(i*10_000+j+1, p) < takeout(i*10_000+j+1, q, a) { 1 } else { 0 }; } } if p > q { println!("{}", result + max(0, switched_idx-1) * 10_000); } else { println!("{}", result - min(100_000-1, switched_idx+2) * 10_000 + (10i32.pow(9) as isize)); } } }