A, B, C = gets.split.map &:to_i p (1..C).bsearch{|n|n+n/A*(B-1)>=C}