{"problem":{"name":"Ferris Wheel","description":{"content":"Takahashi, who is $A$ years old, is riding a Ferris wheel. It costs $B$ yen ($B$ is an even number) to ride the Ferris wheel if you are $13$ years old or older, but children between $6$ and $12$ years","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc127_a"},"statements":[{"statement_type":"Markdown","content":"Takahashi, who is $A$ years old, is riding a Ferris wheel.\nIt costs $B$ yen ($B$ is an even number) to ride the Ferris wheel if you are $13$ years old or older, but children between $6$ and $12$ years old (inclusive) can ride it for half the cost, and children who are $5$ years old or younger are free of charge. (Yen is the currency of Japan.)\nFind the cost of the Ferris wheel for Takahashi.\n\n## Constraints\n\n*   $0 ≤ A ≤ 100$\n*   $2 ≤ B ≤ 1000$\n*   $B$ is an even number.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$A$ $B$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc127_a","tags":[],"sample_group":[["30 100","100\n\nTakahashi is $30$ years old now, and the cost of the Ferris wheel is $100$ yen."],["12 100","50\n\nTakahashi is $12$ years old, and the cost of the Ferris wheel is the half of $100$ yen, that is, $50$ yen."],["0 100","0\n\nTakahashi is $0$ years old, and he can ride the Ferris wheel for free."]],"created_at":"2026-03-03 11:01:14"}}