from nada_dsl import *
def nada_main():
    pricing = Party(name="pricing")
    inventory = Party(name="inventory")
    accounting = Party(name="accounting")
    price_potato = SecretInteger(Input(name="price_potato", party=pricing))
    price_tomato = SecretInteger(Input(name="price_tomato", party=pricing))
    quantity_potato = SecretInteger(Input(name="quantity_potato", party=inventory))
    quantity_tomato = SecretInteger(Input(name="quantity_tomato", party=inventory))
    revenue = (price_potato * quantity_potato) + (price_tomato + quantity_tomato)
    return [Output(revenue, "revenue", accounting)]