Types: a: int, b: int, n: int  
Ranges: 1 ≤ a ≤ 1000, 1 ≤ b ≤ 10000, 1 ≤ n ≤ 100  
Addtl Info: There are no more than 100 datasets.