}
def recalc
(input
:S
):SeqValue
}
def recalc
(input
:SeqValue
) = Price
(1 + seq, input.
value) }
def main
(args
: Array
[String
]){ }
}
c2VhbGVkIHRyYWl0IFNlcVZhbHVlIHsKICBkZWYgc2VxOkludAogIGRlZiB2YWx1ZTpGbG9hdAogIG92ZXJyaWRlIGRlZiB0b1N0cmluZyA9IG51bGwKfQoKc2VhbGVkIHRyYWl0IENhbGMgewogIHR5cGUgUyA8OiBTZXFWYWx1ZQogIGRlZiByZWNhbGMoaW5wdXQ6Uyk6U2VxVmFsdWUKfQoKY2FzZSBjbGFzcyBQcmljZShzZXE6SW50PTAsIHZhbHVlOkZsb2F0PS4wZikgZXh0ZW5kcyBTZXFWYWx1ZSB3aXRoIENhbGMgewogIHR5cGUgUyA9IFNlcVZhbHVlCiAgZGVmIHJlY2FsYyhpbnB1dDpTZXFWYWx1ZSkgPSBQcmljZSgxICsgc2VxLCBpbnB1dC52YWx1ZSkKfQoKb2JqZWN0IE1haW4gewogIGRlZiBtYWluKGFyZ3M6IEFycmF5W1N0cmluZ10pewogIH0KfQ==