"""Donut"""
def main():
    """This is show program Donut"""
    price = int(input())
    buy = int(input())
    free = int(input())
    must = int(input())

    buy1 = must // (buy+free)
    donut = buy1 * (buy+free)
    must %= buy+free

    pay = buy1*price*buy

    if must >= buy:
        buy1 = must // buy
        donut += buy1 * (buy+free)
        pay += buy1 * buy * price

    else:
        donut += must
        pay += must * price

    print(pay, donut)
main()


8657922a56ab5ee2f002dea451cde69bd8a7dbb9
<mask token>

<mask token>


def main():
    """This is show program Donut"""
    price = int(input())
    buy = int(input())
    free = int(input())
    must = int(input())
    buy1 = must // (buy + free)
    donut = buy1 * (buy + free)
    must %= buy + free
    pay = buy1 * price * buy
    if must >= buy:
        buy1 = must // buy
        donut += buy1 * (buy + free)
        pay += buy1 * buy * price
    else:
        donut += must
        pay += must * price
    print(pay, donut)


<mask token>

<mask token>


def main():
    """This is show program Donut"""
    price = int(input())
    buy = int(input())
    free = int(input())
    must = int(input())
    buy1 = must // (buy + free)
    donut = buy1 * (buy + free)
    must %= buy + free
    pay = buy1 * price * buy
    if must >= buy:
        buy1 = must // buy
        donut += buy1 * (buy + free)
        pay += buy1 * buy * price
    else:
        donut += must
        pay += must * price
    print(pay, donut)


main()

"""Donut"""
def main():
    """This is show program Donut"""
    price = int(input())
    buy = int(input())
    free = int(input())
    must = int(input())

    buy1 = must // (buy+free)
    donut = buy1 * (buy+free)
    must %= buy+free

    pay = buy1*price*buy

    if must >= buy:
        buy1 = must // buy
        donut += buy1 * (buy+free)
        pay += buy1 * buy * price

    else:
        donut += must
        pay += must * price

    print(pay, donut)
main()

