{"problem":{"name":"Hachi","description":{"content":"Given is a digit sequence $S$ consisting of the digits from `1` through `9`. Takahashi, the bee, loves multiples of $8$. He is trying to make a multiple of $8$ by permuting the digit sequence $S$. Det","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc181_d"},"statements":[{"statement_type":"Markdown","content":"Given is a digit sequence $S$ consisting of the digits from `1` through `9`.\nTakahashi, the bee, loves multiples of $8$.\nHe is trying to make a multiple of $8$ by permuting the digit sequence $S$.\nDetermine whether it is possible.\n\n## Constraints\n\n*   $1 \\leq |S| \\leq 2 \\times 10^5$\n*   Each character of $S$ is one of the digits from `1` through `9`.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$S$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc181_d","tags":[],"sample_group":[["1234","Yes\n\nFor example, permuting $1234$ into $1432$ results in a multiple of $8$."],["1333","No\n\nThere is no way to permute $1333$ into a multiple of $8$."],["8","Yes"]],"created_at":"2026-03-03 11:01:14"}}