# 01. Integer Operations

summand1 = int(input())
summand2 = int(input())
divisor = int(input())
multiplicator = int(input())

total = int((summand1 + summand2) / divisor) * multiplicator
print(total)
