The Unit Economics Check
Lantern spends money to win each subscriber and earns from them for as long as they stay. The investor deck reduces those two facts to one multiple, and the sector's rule of thumb is that a subscriber should be worth at least three times what they cost to sign up.
Task: Print the multiple and the verdict.
Input
Two lines. The first holds the cost of winning one customer, never zero. The second holds what that customer is expected to be worth over their whole life on the platform. Either may be whole or decimal.
Output
Two lines. First ratio X.X — the label, one space, and the customer's lifetime worth stated as a multiple of what they cost to win, with exactly one digit after the decimal point. Then healthy if the multiple is three or more, or unhealthy if it falls short. Exactly three times counts as healthy. Judge the verdict on the true multiple, not on the rounded figure you just printed.
Example:
Input:
50
180
Output:
ratio 3.6
healthy
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in