{"problem":{"name":"ABC Preparation","description":{"content":"Takahashi has decided to hold some number of programming contests.   Holding one contest requires one $100$\\-point problem, one $200$\\-point problem, one $300$\\-point problem, and one $400$\\-point pro","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc185_a"},"statements":[{"statement_type":"Markdown","content":"Takahashi has decided to hold some number of programming contests.  \nHolding one contest requires one $100$\\-point problem, one $200$\\-point problem, one $300$\\-point problem, and one $400$\\-point problem.  \nWhen he has $A_1$, $A_2$, $A_3$, and $A_4$ drafts of $100$\\-, $200$\\-, $300$\\-, and $400$\\-point problems, respectively, at most how many contests can he hold?  \nThe same draft can be used only once.\n\n## Constraints\n\n*   $1 \\le A_i \\le 100$ $(1 \\le i \\le 4)$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$A_1 \\hspace{7pt} A_2 \\hspace{7pt} A_3 \\hspace{7pt} A_4$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc185_a","tags":[],"sample_group":[["5 3 7 11","3\n\nBy using three drafts for each slot, he can hold three contests. He has just three drafts for $200$\\-point problems, so he cannot hold four."],["100 100 1 100","1\n\nA contest cannot be held even if there is just one missing slot."]],"created_at":"2026-03-03 11:01:14"}}