{"problem":{"name":"Shampoo","description":{"content":"Three people live in Takahashi's house: Takahashi, his father, and his mother. All of them wash their hair in the bathroom each night.   His father, his mother, and Takahashi take a bath in this order","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc243_a"},"statements":[{"statement_type":"Markdown","content":"Three people live in Takahashi's house: Takahashi, his father, and his mother. All of them wash their hair in the bathroom each night.  \nHis father, his mother, and Takahashi take a bath in this order and use $A$, $B$, and $C$ milliliters of shampoo, respectively.\nThis morning, the bottle contained $V$ milliliters of shampoo. Without refilling, who will be the first to run short of shampoo to wash their hair?\n\n## Constraints\n\n*   $1 \\leq V,A,B,C \\leq 10^5$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$V$ $A$ $B$ $C$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc243_a","tags":[],"sample_group":[["25 10 11 12","T\n\nNow, they have $25$ milliliters of shampoo.\n\n*   First, Takahashi's father uses $10$ milliliters, leaving $15$.\n*   Next, Takahashi's mother uses $11$ milliliters, leaving $4$.\n*   Finally, Takahashi tries to use $12$ milliliters and runs short of shampoo since only $4$ is remaining."],["30 10 10 10","F\n\nNow, they have $30$ milliliters of shampoo.\n\n*   First, Takahashi's father uses $10$ milliliters, leaving $20$.\n*   Next, Takahashi's mother uses $10$ milliliters, leaving $10$.\n*   Then, Takahashi uses $10$ milliliters, leaving $0$.\n*   Next day, Takahashi's father tries to use $10$ milliliters and runs short of shampoo since only $0$ is remaining."],["100000 1 1 1","M"]],"created_at":"2026-03-03 11:01:14"}}