Spadework 2020. 1. 28. 22:15

* Solved 기준 브론즈5 단순 풀이

n, t, c, p = map(int, input().split())
print((n//t if n%t != 0 else n//t-1) * c * p)