https://www.acmicpc.net/problem/15726
a,b,c=map(int,input().split()) sum=int(a*b/c) sum1=int(a/b*c) print(max(sum,sum1))