// graph struct Graph { node: i32, adjMatrixs: Vec>, } struct WeightGraph { node: i32, weight: Vec>, } // points struct Point { x: i32, y: i32, } struct PointGroup{ n: i32, point:Point, } use std::io; fn read_line() -> String { let mut s = String::new(); io::stdin().read_line(&mut s).unwrap(); s } macro_rules! from_line { ($($a:ident : $t:ty),+) => { $(let $a: $t;)+ { let _line = read_line(); let mut _it = _line.trim().split_whitespace(); $($a = _it.next().unwrap().parse().unwrap();)+ assert!(_it.next().is_none()); } }; } fn solve(){ from_line!(a: i32,b:i32,x:i32); for i in 1..=1000{ if a * i >= x { let ans = i*b; println!("{}",ans); return; } } } fn main() { solve(); }