problem_id
stringlengths 6
6
| user_id
stringlengths 10
10
| time_limit
float64 1k
8k
| memory_limit
float64 262k
1.05M
| problem_description
stringlengths 48
1.55k
| codes
stringlengths 35
98.9k
| status
stringlengths 28
1.7k
| submission_ids
stringlengths 28
1.41k
| memories
stringlengths 13
808
| cpu_times
stringlengths 11
610
| code_sizes
stringlengths 7
505
|
---|---|---|---|---|---|---|---|---|---|---|
p02675 | u433136867 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["import numpy as np\n\nK = int(input())\nS = input()\nS = list(S)\nmojiretu=''\nif len(S) <= K:\n print(S)\n\nelse:\n del S[K:len(S)]\n for x in S:\n mojiretu += x\n print(str(mojiretu)+'...')", "import numpy as np\n\nN = int(input())\n\namari = N%10\nhon_set = [2,4,5,7,9]\npon_set = [0,1,6,8]\nbon_set = [3]\n\nfor x in hon_set:\n if amari == x:\n print('hon')\n\nfor x in pon_set:\n if amari == x:\n print('pon')\n\nfor x in bon_set:\n if amari == x:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s671325970', 's228540965'] | [27152.0, 26960.0] | [113.0, 100.0] | [197, 283] |
p02675 | u433424442 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import sys\ndef input():\n return sys.stdin.readline()[:-1]\n\n\ndef test():\n \n n = input()\n\n if n[-1] == "3":\n return("bon")\n elif n[-1] in {0,1,6,8}:\n return("pon")\n else:\n return("hon")\n\nprint(test())', 'import sys\ndef input():\n return sys.stdin.readline()[:-1]\n\n\ndef test():\n \n n = input()\n\n if n[-1] == "3":\n return("bon")\n elif n[-1] in {"0","1","6","8"}:\n return("pon")\n else:\n return("hon")\n\nprint(test())'] | ['Wrong Answer', 'Accepted'] | ['s183183760', 's466868870'] | [9116.0, 9060.0] | [25.0, 21.0] | [272, 280] |
p02675 | u434846982 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\ndef solution():\n a, b, h, m = map(int, input().split())\n return (a**2 + b**2 -2*a*b*round(math.cos(2*math.pi*(h/12 - m/60)), 9))**0.5\n\nprint(solution())', 'import math\ndef solution():\n a, b, h, m = map(int, input().split())\n return round((a**2 + b**2 -2*a*b*math.cos(2*math.pi*(h/12 - m/60)))**0.5, 9)\n\nprint(solution())', "def solution():\n n = int(input())\n bon = [3]\n pon = [0, 1, 6, 8]\n last = n % 10\n if last in bon:\n return 'bon'\n elif last in pon:\n return 'pon'\n else:\n return 'hon' \n \nprint(solution())"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s131271503', 's255868720', 's120949101'] | [9168.0, 9160.0, 9120.0] | [23.0, 21.0, 21.0] | [171, 171, 230] |
p02675 | u435385845 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['a = input()\ns = a % 10\nprint("hon" if s ==2 or s == 4 or s == 5 or \n s == 7 or s == 9 else "pon" if \n s == 0 or s == 1 or s == 6 or s == 8\n else "bon")', 'import math as ma\n\na,b,h,m = map(int,input().split())\n\nal = h*30\nbl = m*6\ndec = al-bl\ndec = dec % 180\nif dec < 0:\n dec *= -1\nrad = dec * ma.pi / 180\nr = ma.sqrt(a**2 + b**2 -2*a*b*ma.cos(rad))\nprint(r)', 'a = int(input())\ns = a % 10\nprint("hon" if s ==2 or s == 4 or s == 5 or \n s == 7 or s == 9 else "pon" if \n s == 0 or s == 1 or s == 6 or s == 8\n else "bon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s275006399', 's929747612', 's240049903'] | [9024.0, 9156.0, 9116.0] | [24.0, 22.0, 22.0] | [166, 202, 171] |
p02675 | u439063038 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N, M = list(map(int, input().split()))\npaths = [list(map(int, input().split())) for _ in range(M)]\n\nresult = []\npassed_room = [1]\ndepth = 1\n\nwhile paths and depth<N:\n tmp_passed = passed_room.copy()\n \n for i, path in enumerate(paths):\n \n if path[0] in passed_room:\n if path[1] in passed_room:\n del paths[i]\n continue\n result.append((path[1], path[0]))\n tmp_passed.append(path[1])\n del paths[i]\n continue\n \n if path[1] in passed_room:\n if path[0] in passed_room:\n del paths[i]\n result.append((path[0], path[1]))\n tmp_passed.append(path[0])\n del paths[i]\n continue\n depth += 1\n passed_room = passed_room + tmp_passed\n if len(tmp_passed) == 0:\n print('No')\n exit()\n \n \nresult = sorted(result)\nprint('Yes')\nfor i, j in result:\n print(j)", "last_num = input()[-1]\n\nif last_num in ['2', '4', '5', '7', '9']:\n print('hon')\nelif last_num in ['0', '1', '6', '8']:\n print('pon')\nelif last_num in ['3']:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s408197545', 's868659405'] | [9256.0, 9088.0] | [22.0, 20.0] | [832, 173] |
p02675 | u440322097 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\nn = N[len(N)]\nif n == "2" or n== \'4\' or n==\'5\' or n==\'7\' or n==\'9\':\n print("hon")\nelif n == \'0\' or n==\'1\' or n==\'6\' or n==\'8\':\n print(\'pon\')\nelse:\n print(\'bon\')', 'n = input()\nl = len(n)\nif n[l] == "2" or \'4\' or \'5\' or \'7\' or \'9\':\n print("hon")\nelif n[l] == \'0\' or \'1\' or \'6\' or \'8\':\n print(\'pon\')\nelse:\n print(\'bon\')', 'N = input()\nl = len(N)\nn = N[l]\nif n == "2" or \'4\' or \'5\' or \'7\' or \'9\':\n print("hon")\nelif n == \'0\' or \'1\' or \'6\' or \'8\':\n print(\'pon\')\nelse:\n print(\'bon\')', 'N = input()\nn = N[len(n)]\nif n == "2" or n== \'4\' or n==\'5\' or n==\'7\' or n==\'9\':\n print("hon")\nelif n == \'0\' or n==\'1\' or n==\'6\' or n==\'8\':\n print(\'pon\')\nelse:\n print(\'bon\')', 'N = input()\nn = N[len(N)-1]\nif n == "2" or n== \'4\' or n==\'5\' or n==\'7\' or n==\'9\':\n print("hon")\nelif n == \'0\' or n==\'1\' or n==\'6\' or n==\'8\':\n print(\'pon\')\nelse:\n print(\'bon\')\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s076583565', 's674449195', 's924645925', 's986209809', 's182650770'] | [8872.0, 9036.0, 9100.0, 9048.0, 9108.0] | [19.0, 23.0, 23.0, 23.0, 25.0] | [175, 156, 159, 175, 178] |
p02675 | u440613652 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\n\na,b,h,m=map(int,input().split())\n\nhour_angle=0.5*(60*h+m)\nminute_angle=6*m\n\ndiff_angle=abs(hour_angle-minute_angle)\n\nangle=min(360-diff_angle,diff_angle)\ncos_angle=math.cos(angle*(math.pi/180))\n\nlenth=math.sqrt(a**2+b**2-(2*a*b*cos_angle))\nprint(lenth)\n\n', 'n=int(input())\nn=n%10\n\nif n==3:\n print("bon")\nelif n==0 or n==1 or n==6 or n==8:\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Accepted'] | ['s593305870', 's276297712'] | [9132.0, 9004.0] | [21.0, 26.0] | [267, 117] |
p02675 | u441246928 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\nif N[len(N)-1] == 2 or 4 or 5 or 7 or 9 :\n print('hon')\nelif N[len(N)-1] == 0 or 1 or 6 or 8 :\n print('pon')\nelse :\n print('bon')", "a,b,c = map(int,input().split())\nN = 100*a + 10*b + c\nif c == 2 or 4 or 5 or 7 or 9 :\n print('hon')\nelif c == 0 or 6 or 1 or 8 :\n print('pon')\nelse :\n print('bon')", "N = input()\nif N[len(N)-1] == 2 or 4 or 5 or 7 or 9 :\n print('hon')\nelif N[len(N)-1] == 0 or 1 or 6 or 8 :\n print('pon')\nelse :\n print('bon')", "N = input()\nn = int(N[len(N)-1] )\nif n == 0 or n == 1 or n == 6 or n == 8 :\n print('pon')\nelif n == 2 or n == 4 or n == 5 or n == 7 or n == 9 :\n print('hon')\nelif n == 3 :\n print('bon')\n\n"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s291262018', 's364846140', 's849187442', 's937294636'] | [9112.0, 9172.0, 8980.0, 9172.0] | [22.0, 25.0, 21.0, 21.0] | [155, 172, 150, 199] |
p02675 | u441902623 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = int(input())\nif n[len(n) - 1] == 3:\n print("bon")\nelif n[len(n) - 1] == 0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("hon")', 'n = input()\nif n[-1] == "2" or "4" or "5" or "7" or "9":\n print("hon")\nelif n[-1] == "0" or "1" or "6" or "8":\n print("pon")\nelif n[-1] == "3":\n print("bon")', 'n = input()\nif n[-1] in "24579":\n print("hon")\nelif n[-1] in "0168":\n print("pon")\nelif n[-1] in "3":\n print("bon")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s527053320', 's952509241', 's776570674'] | [9088.0, 8944.0, 8928.0] | [26.0, 26.0, 28.0] | [130, 160, 118] |
p02675 | u442850625 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\n\nif N in [2,3,5,7,9]:\n print("hon")\nelif N in [0, 1, 6, 8]:\n print("pon")\nelif N == 3:\n print("bon")', 'N = int(input())\n\nif N in [2,3,5,7,9]:\n print("hon")\nelif N in [0, 1, 6, 8]:\n print("pon")\nelif N == 3:\n print("bon")', 'N = str(input())\n\nN = int(N[-1])\n\nif N in [2,4,5,7,9]:\n print("hon")\nelif N in [0, 1, 6, 8]:\n print("pon")\nelif N == 3:\n print("bon")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s054554480', 's808056997', 's611850981'] | [9104.0, 9172.0, 9180.0] | [22.0, 19.0, 21.0] | [121, 126, 142] |
p02675 | u443736699 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['one_digit = N % 10\nif one_digit == 2 or one_digit == 4 or one_digit == 5 or one_digit == 7 or one_digit == 9:\n print("hon")\nelif one_digit == 0 or one_digit == 1 or one_digit == 6 or one_digit == 8:\n print("pon")\nelse:\n print("bon")', 'N = input()\n\none_digit = N % 10\nif one_digit == 2 or one_digit == 4 or one_digit == 5 or one_digit == 7 or one_digit == 9:\n print("hon")\nelif one_digit == 0 or one_digit == 1 or one_digit == 6 or one_digit == 8:\n print("pon")\nelse:\n print("bon")\n', 'N = input()\none_digit = int(N) % 10\nif one_digit == 2 or one_digit == 4 or one_digit == 5 or one_digit == 7 or one_digit == 9:\n print("hon")\nelif one_digit == 0 or one_digit == 1 or one_digit == 6 or one_digit == 8:\n print("pon")\nelse:\n print("bon")\n\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s195370888', 's422701297', 's447801131'] | [9108.0, 9108.0, 9112.0] | [21.0, 22.0, 24.0] | [235, 249, 254] |
p02675 | u445249316 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["from sys import stdin\n\n\nn = stdin.readline().rstrip()\n\nif n[-1] in [2,4,5,7,9]:\n print('hon')\nelif n[-1] in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')\n", "from sys import stdin\n\n\nn = stdin.readline().rstrip()\n\nif n[-1] in ['2','4','5','7','9']:\n print('hon')\nelif n[-1] in ['0','1','6','8']:\n print('pon')\nelse:\n print('bon')\n"] | ['Wrong Answer', 'Accepted'] | ['s424184738', 's237687030'] | [9040.0, 9036.0] | [25.0, 20.0] | [162, 180] |
p02675 | u445978065 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['ls =list([2,4,5,7,9],[0,1,6,8],[3])\ndic = dict{[2,4,5,7,9]:"hon" , [0,1,6,8]:"pon" , [3]:"bon"}\ns=int(input())\nfor i in ls:\n if s%10 in i:\n print(dic[i])', 'ls =["24579" , "0168" , "3"]\ndic = {"24579":"hon" , "0168":"pon" , "3":"bon"}\ns=input()\nfor i in ls:\n if s[len(s)-1] in i:\n print(dic[i])'] | ['Runtime Error', 'Accepted'] | ['s824314879', 's717968487'] | [8956.0, 9028.0] | [24.0, 23.0] | [157, 141] |
p02675 | u446711904 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n=int(input())%10\nif n=3:\n print('bon')\nelif n in [0,1,6,8]:\n print('pon')\nelse:\n print('hon')", "n=int(input())%10\nif n==3:\n print('bon')\nelif n in [0,1,6,8]:\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Accepted'] | ['s283622087', 's550493321'] | [8900.0, 9168.0] | [24.0, 20.0] | [97, 98] |
p02675 | u447166124 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\n\nif N == 2 or N == 4 or N == 5 or N == 7 or N == 9:\n print('hon')\nelif N == 0 or N == 1 or N == 6 or N == 8:\n print('pon')\nelse:\n print('bon')", "N = input()\n\nif int(N[-1]) == 2 or int(N[-1]) == 4 or int(N[-1]) == 5 or int(N[-1]) == 7 or int(N[-1]) == 9:\n print('hon')\nelif int(N[-1]) == 0 or int(N[-1]) == 1 or int(N[-1]) == 6 or int(N[-1]) == 8:\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s943410499', 's319837698'] | [9176.0, 9196.0] | [21.0, 22.0] | [173, 248] |
p02675 | u447679353 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=int(input())\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\nif N in hon:\n print("hon")\nelif N in pon:\n print("pon")\nelse:\n print("bon")', 'N=int(input())\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\nN = N%10\nif N in hon:\n print("hon")\nelif N in pon:\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s021264212', 's540051544'] | [9180.0, 9180.0] | [20.0, 21.0] | [137, 146] |
p02675 | u449473917 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n=input()[-1]\n\nhon=[2,4,5,7,9]\npon=[0,1,6,8]\n\nif n in hon: print('hon')\nelif n in pon: print('pon')\nelse: print('bon')", "n=int(input()[-1])\n\nhon=[2,4,5,7,9]\npon=[0,1,6,8]\n\nif n in hon: \n print('hon')\n exit()\nelif n in pon: \n print('pon')\n exit()\nelse: print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s208406325', 's568262806'] | [9104.0, 9036.0] | [23.0, 22.0] | [118, 155] |
p02675 | u449863068 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = int(input())\ns = str(N)\n\nprint(s[-1])\nif s[-1] == "3":\n print("bon")\nelif s[-1] == "0" or s[-1] == "1" or s[-1] == "6" or s[-1] == "8":\n print("pon")\nelse:\n print("hon")\n', 'N = int(input())\ns = str(N)\n\nif s[-1] == "3":\n print("bon")\nelif s[-1] == "0" or s[-1] == "1" or s[-1] == "6" or s[-1] == "8":\n print("pon")\nelse:\n print("hon")\n'] | ['Wrong Answer', 'Accepted'] | ['s547276435', 's580696064'] | [9180.0, 9132.0] | [22.0, 20.0] | [177, 164] |
p02675 | u450288159 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\nn = N % 10\nif n == 3:\n print('bon')\nelif n == 0 or n == 1 or n == 6 or n == 8:\n print('hon')\nelse:\n print('pon')", "N = int(input())\nn = N % 10\nif n == 3:\n print('bon')\nelif n == 0 or n == 1 or n == 6 or n == 8:\n print('pon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Accepted'] | ['s278074899', 's518314000'] | [9156.0, 9156.0] | [20.0, 25.0] | [132, 132] |
p02675 | u452885705 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["from collections import deque\n\ndef main():\n N,M = map(int, input().split())\n r = [[] for i in range(N)]\n for i in range(M):\n a, b = map(int, input().split())\n r[a-1].append(b-1)\n r[b-1].append(a-1)\n print(r)\n\n p=[-1]*N\n q=deque([0])\n while q:\n i=q.popleft()\n for j in r[i]:\n if p[j] == -1:\n p[j] = i\n q.append(j)\n print('Yes')\n for i in range(1,N):\n print(p[i]+1)\n\nmain()", "n = input()\nhon = ['2','4','5','7','9']\npon = ['0','1','6','8']\nif n[-1] in hon:\n print('hon')\nelif n[-1] in pon:\n print('pon')\nelse:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s035473775', 's951330779'] | [9404.0, 9108.0] | [25.0, 22.0] | [481, 156] |
p02675 | u454356633 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = int(input())\n\nS = str(N)\n\nH = (S[-1])\n\nif H == 0:\n print("pon")\n\nelif H == 1:\n print("pon")\n\nelif H == 2:\n print("hon")\n\nelif H == 3:\n print("bon")\n\nelif H == 4:\n print("hon")\n\nelif H == 5:\n print("hon")\n\nelif H == 6:\n print("pon")\n\nelif H == 7:\n print("hon")\n\nelif H == 8:\n print("pon")\n\nelse:\n print("hon")', 'N = input()\n\nS = str(N)\n\nK = int(S[-1])\n\nif K == 0 or K == 1 or K == 6 or K == 8:\n print("pon")\nelif K == 3:\n print("bon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s119643833', 's143407010'] | [9228.0, 9176.0] | [23.0, 20.0] | [352, 151] |
p02675 | u455629561 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\nif N[-1] == "3":\n print("bon")\nelif N[-1] == "0" or N[-1] == "1" or N[-1] == 6 or N[-1] ==8:\n print("pon")\nelse:\n print("hon")', 'N = input()\nif N[-1] == "3":\n print("bon")\nelif N[-1] == "0" or N[-1] == "1" or N[-1] == "6" or N[-1] == "8":\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s396170683', 's410340833'] | [9108.0, 9108.0] | [20.0, 21.0] | [147, 152] |
p02675 | u455957070 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = input()\na = [int(c) for c in n]\ns = len(a) - 1\nif(a[s] == 3):\n print('bon')\nif(a[s] == 2 and 4 and 5 and 7 and 9):\n print('pon')\nif(a[s] == 0 and 1 and 6 and 8):\n print('hon')", "n = input()\na = [int(c) for c in n]\nif(a[len(n)] == 3):\n print('bon')\nelif(a[len(n)] == 0 or 1 or 6 or 8):\n print('pon')\nelse:\n print('hon')", "n = input()\na = [int(c) for c in n]\nif(a[-1] == 3):\n print('bon')\nelif(a[-1] == 0):\n print('pon')\nelif(a[-1] == 1):\n print('pon')\nelif(a[-1] == 6):\n print('pon')\nelif(a[-1] == 8):\n print('pon')\nelif(a[-1] == 2):\n print('hon')\nelif(a[-1] == 4):\n print('hon')\nelif(a[-1] == 5):\n print('hon')\nelif(a[-1] == 7):\n print('hon')\nelif(a[-1] == 9):\n print('hon')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s032028281', 's863199160', 's575571230'] | [9132.0, 9176.0, 9196.0] | [20.0, 21.0, 26.0] | [188, 149, 365] |
p02675 | u458023139 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["s = input()\nif s[-1] == 2:\n\tprint('hon')\nelif s[-1] == 4:\n\tprint('hon')\nelif s[-1] == 5:\n\tprint('hon')\nelif s[-1] == 7:\n\tprint('hon')\nelif s[-1] == 9:\n\tprint('hon')\nelif s[-1] == 0:\n\tprint('pon')\nelif s[-1] == 1:\n\tprint('pon')\nelif s[-1] == 6:\n\tprint('pon')\nelif s[-1] == 8:\n\tprint('pon')\nelse:\n\tprint('bon')", "s = input()\nif s[-1] == 2:\n\tprint('hon')\nelif s[-1] == 4:\n\tprint('hon')\nelif s[-1] == 5:\n\tprint('hon')\nelif s[-1] == 7:\n\tprint('hon')\nelif s[-1] == 9:\n\tprint('hon')\nelif s[-1] == 0:\n\tprint('pon')\nelif s[-1] == 1:\n\tprint('pon')\nelif s[-1] == 6:\n\tprint('pon')\nelif s[-1] == 8:\n\tprint('pon')\nelse:\n\tprint('bon')", 'n = input()\nc = n[-1]\n\nif c in "3":\n print("bon")\nelif c in "0168":\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s080704109', 's989774284', 's841160530'] | [9092.0, 9088.0, 8996.0] | [28.0, 26.0, 30.0] | [308, 308, 110] |
p02675 | u458388104 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\n \nn = input()\n \nif n[len(n)] == 3:\n print("bon")\nelif n[len(n)] == 0 or n[len(n)] == 1 or n[len(n)] == 0 or n[len(n)] == 6 or n[len(n)] == 8:\n print("pon")\nelse:\n print("hon")\n ', 'import math\n\nn = input()\n\nif n[len(n)] == 3:\n print("bon")\nelif n[len(n)] == 0 or n[len(n)] == 1 or n[len(n)] == 0 or n[len(n)] == 6 or n[len(n)] == 8:\n print("pon")\nelse:\n print("hon")\n\nif n == math.inf:\n print("a")\n', '#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport math\n\nn = input().rstrip()\n\nif n[len(n)-1] == "3":\n print("bon")\nelif n[len(n)-1] == "0" or n[len(n)-1] == "1" or n[len(n)-1] == "6" or n[len(n)-1] == "8":\n print("pon")\nelse:\n print("hon")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s290749929', 's924464875', 's527249943'] | [9100.0, 9060.0, 8988.0] | [21.0, 20.0, 23.0] | [193, 222, 252] |
p02675 | u458590500 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N=int(input())\n\nnum=str(N)\n\nif num[-1]==3:\n print('bon')\nelif num[-1]==0 or num[-1]==1 or num[-1]==6 or num[-1]==8:\n print('pon')\nelse:\n print('hon')", "N=int(input())\n\nnum=str(N)\n\nif int(num[-1])==3:\n print('bon')\nelif int(num[-1])==0 or int(num[-1])==1 or int(num[-1])==6 or int(num[-1])==8:\n print('pon')\nelse:\n print('hon')\n"] | ['Wrong Answer', 'Accepted'] | ['s062032281', 's242700289'] | [9180.0, 9172.0] | [22.0, 19.0] | [152, 178] |
p02675 | u459391214 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N=input('suuzi')\nn=len(N)\nnumber=int(N[n-1])\nif number == 2or number== 4 or number==5 or number==7or number==9:\n print('hon')\nelif number==0 or number==1 or number==6 or number==8:\n print('pon')\nelse:\n print('bon')\n", "N=input()\nn=len(N)\nnumber=int(N[n-1])\nif number == 2or number== 4 or number==5 or number==7or number==9:\n print('hon')\nelif number==0 or number==1 or number==6 or number==8:\n print('pon')\nelse:\n print('bon')\n"] | ['Wrong Answer', 'Accepted'] | ['s838913876', 's806126425'] | [9060.0, 9052.0] | [20.0, 21.0] | [229, 222] |
p02675 | u460386402 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\na,b,h,m=map(int,input().split())\ntyok=h*30+m*0.5\ntank=m*6\nsa=abs(tyok-tank)\nprint(math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(sa))))\n', 'import math\na,b,h,m=map(int,input().split())\ntyok=h*30+m*0.5\ntank=m*6\nsa=abs(tyok-tank)\nc=a**2+b**2-2*a*b*math.cos(math.radians(sa))\nprint(math.sqrt(c))\n', 'n=list(input())\nif n[-1]==\'3\':\n print(\'bon\')\nelif n[-1]==\'0\' or n[-1]==\'1\' or n[-1]==\'6\' or n[-1]==\'8\':\n print("pon")\nelse :\n print("hon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s796323099', 's962428089', 's985160041'] | [9052.0, 9100.0, 9132.0] | [21.0, 23.0, 22.0] | [149, 153, 141] |
p02675 | u460980455 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=input()\nn=n[-1]\nprint(n)\nif n==\'3\':\n print(\'bon\')\nif n=="0" or n=="1" or n=="6" or n=="8":\n print(\'pon\')\nif n=="2" or n=="4" or n=="5" or n=="7" or n=="9":\n print(\'hon\')\n ', 'n=input()\nn=n[-1]\nprint(n)\nif n==\'3\':\n print(\'bon)\nif n=="0" or n=="1" or n=="6" or n=="8":\n print(\'pon\')\nif n=="2" or n=="4" or n=="5" or n=="7" or n=="9":\n print(\'hon\')\n ', 'n=input()\nn=n[-1]\nprint(n)\nif n==\'3\':\n print(\'bon)\nif n=="0" or n=="1" or n=="6" or n=="8":\n print(\'pon\')\nif n=="2" or n=="4" or n=="5" or n=="7" or n=="9":\n print(\'hon\')\n ', 'n=input()\nn=n[-1]\nprint(n)\nif n==\'3\':\n print(\'bon\')\nelse:\n if n=="0" or n=="1" or n=="6" or n=="8":\n print(\'pon\')\n else:\n print(\'hon\')', 'n=input()\nn=n[-1]\nif n==\'3\':\n print(\'bon\')\nif n=="0" or n=="1" or n=="6" or n=="8":\n print(\'pon\')\nif n=="2" or n=="4" or n=="5" or n=="7" or n=="9":\n print(\'hon\')'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s138488396', 's258376595', 's451420435', 's908594566', 's493818267'] | [9024.0, 8936.0, 9004.0, 9048.0, 8968.0] | [22.0, 23.0, 24.0, 22.0, 21.0] | [185, 192, 184, 157, 171] |
p02675 | u463704918 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=int(input())\nN=str(n)\nprint(N[-1])\nif N[0]==2 or 4 or 5 or 7 or 9:\n print("hon")\nelif N[0]==0 or 1 or 6 or 8:\n print("pon")\nelif N[0]==3:\n print("bon")', 'n=int(input())\nN=str(n)\nhon=[2,4,5,7,9]\npon=[0,1,6,8]\n\nif int(N[-1]) in hon:\n print("hon")\nelif int(N[-1]) in pon:\n print("pon")\nelse: \n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s468197846', 's778231799'] | [9184.0, 9184.0] | [24.0, 22.0] | [162, 158] |
p02675 | u464912857 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["input_data = input()\n\nif input_data[-1] == 3:\n print('bon')\n\nelif input_data[-1] in { 0 , 1 , 6 , 8}:\n print('pon')\n\nelse:\n print('hon')", "input_data = input()\n\nif input_data[-1] == 3:\n print('bon')\n\nelif input_data[-1] == 0 or input_data[-1] == 1 or input_data[-1] == 6 or input_data[-1] == 8:\n print('pon')\n\nelse:\n print('hon')", 'n = int(input())\nif n%10 == 3:\n print("bon")\nelif n%10 in [0,1,6,8]:\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s183481089', 's188560884', 's373519771'] | [8928.0, 8964.0, 9164.0] | [27.0, 27.0, 27.0] | [139, 193, 111] |
p02675 | u465652095 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = int(input())\nn = N[-1]\nif n == "2" or n == "4" or n == "5" or n == "7" or n == "9":\n print("hon")\nelif n == "0" or n == "1" or n == "6" or n == "8":\n print("pon")\nelse:\n print("bon")', 'N = int(input())\nif N[-1] == 2 or 4 or 5 or 7 or 9:\n print("hon")\nelif N[-1] == 0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("bon")', 'N = input()\nn = int(N[-1])\nif n == "2" or n == "4" or n == "5" or n == "7" or n == "9":\n print("hon")\nelif n == "0" or n == "1" or n == "6" or n == "8":\n print("pon")\nelse:\n print("bon")', 'N = int(input())\nif N[-1] == 2 or N[-1] == 4 or N[-1] == 5 or N[-1] == 7 or N[-1] == 9:\n print("hon")\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:\n print("pon")\nelse:\n print("bon")', 'N = int(input())\nn = N[-1]\nif n == 2 or n == 4 or n == 5 or n == 7 or n == 9:\n print("hon")\nelif n == 0 or n == 1 or n == 6 or n == 8:\n print("pon")\nelse:\n print("bon")', 'N = input()\nn = N[-1]\nif n == "2" or n == "4" or n == "5" or n == "7" or n == "9":\n print("hon")\nelif n == "0" or n == "1" or n == "6" or n == "8":\n print("pon")\nelse:\n print("bon")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s153991738', 's308297849', 's693370770', 's794346571', 's907755415', 's538485841'] | [9172.0, 9168.0, 9180.0, 9200.0, 9148.0, 9044.0] | [21.0, 21.0, 22.0, 20.0, 23.0, 22.0] | [195, 140, 195, 203, 177, 190] |
p02675 | u466143662 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = int(input())\n\nif n == 3:\n print("bon")\nelif n in [0, 1, 6, 8]:\n print("pon")\nelse:\n print("hon")', 'n = str(input())\n\nn = int(n[-1:])\nif n == 3:\n print("bon")\nelif n in [0, 1, 6, 8]:\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s039333961', 's641210485'] | [9096.0, 9168.0] | [21.0, 20.0] | [109, 125] |
p02675 | u467177102 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['v=int(input())\nwhile v<=10:\n v=v%10\nif v=3:\n print("bon")\nelif v%2==1:\n print("pon")\nelse:\n print("hon")\n', 'v=int(input())\nwhile v<=10\n v=v%10\nif v=3:\n print("bon")\nelif v%2==1:\n print("pon")\nelse:\n print("hon")', 'v=int(input())\n\nv=v%10\nif v=3:\n print("bon")\nelif v%2==1:\n print("pon")\nelse:\n print("hon")\n', 'v=int(input())\n\nv=v%10\nif v==3:\n print("bon")\nelif v%2==1:\n print("pon")\nelse:\n print("hon")\n', 'v=int(input())\n\nv=v%10\nif v==3:\n print("bon")\nelif v==0 or v==1 or v==6 or v==8:\n print("pon")\nelse:\n print("hon")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s491743996', 's595613679', 's667318845', 's993479724', 's833847495'] | [8948.0, 8912.0, 9012.0, 9032.0, 9100.0] | [26.0, 25.0, 21.0, 30.0, 30.0] | [117, 115, 101, 102, 124] |
p02675 | u468972478 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = int(input()[len(n - 1)])\na = [2, 4, 5, 7, 9]\nb = [0, 1, 6, 8]\n\nif n in a:\n print("hon")\nelif n in b:\n print("pon")\nelse:\n print("bon")', 'n = int(input())\na = [2, 4, 5, 7, 9]\nb = [0, 1, 6, 8]\n\nif n in a:\n print("hon")\nelif n in b:\n print("pon")\nelse:\n print("bon")', 'n = input()\nn = int(n[len(n) -1])\na = [2, 4, 5, 7, 9]\nb = [0, 1, 6, 8]\n\nif n in a:\n print("hon")\nelif n in b:\n print("pon")\nelse:\n print("bon")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s466299203', 's930105387', 's349995135'] | [9052.0, 9168.0, 8976.0] | [23.0, 31.0, 27.0] | [141, 129, 146] |
p02675 | u472883337 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N= input()\na= N[-1]\n\nif(a== 3):\n print("bon")\nelif(a== 0 or a== 1 or a== 6 or a== 8):\n print("pon")\nelse:\n print("hon")', 'N= input()\na= int(N[-1])\n\nif(a== 3):\n print("bon")\nelif(a== 0 or a== 1 or a== 6 or a== 8):\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s947235019', 's761148573'] | [9004.0, 9040.0] | [20.0, 21.0] | [122, 127] |
p02675 | u474423089 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["from math import gcd\nfrom collections import defaultdict\nN=int(input())\nmod = 10**9+7\nd_1 = defaultdict(int)\nd_2 = defaultdict(int)\nzeros = 0\n\ndef to_irreducible(a,b):\n GCD = gcd(a,b)\n return list(map(lambda x:x//GCD,[a,b]))\nfor i in range(N):\n a,b=map(int,input().split(' '))\n if a==b==0:\n zeros += 1\n continue\n if a*b >= 0 and b!=0:\n a,b = to_irreducible(abs(a),abs(b))\n d_1[(a,b)] +=1\n else:\n a,b = to_irreducible(abs(b),abs(a))\n d_1[(a,b)] +=0\n d_2[(a,b)] +=1\n\nans = 1\n\nfor k,v_1 in d_1.items():\n v_2 = d_2[k]\n ans *= pow(2,v_1,mod) + pow(2,v_2,mod) -1\n ans %= mod\n\nprint(ans+zeros-1)", "n=int(list(input())[-1])\nif n in [2,4,5,7,9]:\n print('hon')\nelif n==3:\n print('bon')\nelse:\n print('pon')"] | ['Runtime Error', 'Accepted'] | ['s249064566', 's050135781'] | [9464.0, 9184.0] | [25.0, 22.0] | [665, 113] |
p02675 | u478994819 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\n\nN = N % 10\n\nif N == 2 or N == 4 or N == 5 or N == 7 or N == 9:\n print("hon")\n \nelif N == 0 or N == 1 or N == 6 or N == 8:\n print("pon")\n \nelse:\n print("bon")', 'N = int(input())\n\nN = N % 10\n\nif N == 2 or N == 4 or N == 5 or N == 7 or N == 9:\n print("hon")\n \nelif N == 0 or N == 1 or N == 6 or N == 8:\n print("pon")\n \nelse:\n print("bon")\n'] | ['Runtime Error', 'Accepted'] | ['s349661207', 's798789720'] | [9056.0, 9076.0] | [24.0, 23.0] | [175, 181] |
p02675 | u480321332 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['x = input()\n\n\nif x[-1] == "3":\n print("bon")\nelif x[-1] = "0" or x[-1] = "1" or x[-1] = "6" or x[-1] = "8":\n print("pon")\nelse:\n print("hon") ', 'x = input()\n\n\nif x[-1] == "3":\n print("bon")\nelif x[-1] == "0" or x[-1] =="1" or x[-1] == "6" or x[-1] == "8":\n print("pon")\nelse:\n print("hon") '] | ['Runtime Error', 'Accepted'] | ['s754722730', 's286903252'] | [9024.0, 9044.0] | [21.0, 23.0] | [154, 157] |
p02675 | u480816516 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=input()\nn=N%10\nif n==3:\n print("bon")\nelif n==0 or n==1 or n==6 or n==8:\n print("pon")\nelse:\n print("hon")\n \n', 'N=int(input())\nn=N%10\nif n==3:\n print("bon")\nelif n==0 or n==1 or n==6 or n==8:\n print("pon")\nelse:\n print("hon")\n \n'] | ['Runtime Error', 'Accepted'] | ['s807166866', 's084914586'] | [9100.0, 9136.0] | [21.0, 21.0] | [115, 120] |
p02675 | u484292780 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['a = input()\nn = len(a)\nif (int(a[n-1])==3):\n print("bon")\nelif(int(a[n-1]) in [0,1,6,8]):\n print("hon")\nelse:\n print("pon")', 'a = input()\nn = len(a)\nif (a[n]==3):\n print(bon)\nelif(a[n] in [0,1,6,8]):\n print(hon)\nelse:\n print(pon)', 'a = input()\nn = len(a)\nif (a[n-1]==3):\n print(bon)\nelif(a[n-1] in [0,1,6,8]):\n print(hon)\nelse:\n print(pon)', 'import math\n\nA,B,H,M = map(int, input().split())\n\ntotal_min = 60 * H + M\nch = (360/(12*60)) * total_min\ncm = 360/60 * M\n\nprint(math.sqrt(A*A + B*B - 2*A*B*math.cos(ch-cm)) )', 'a = input()\nn = len(a)\nif (int(a[n-1])==3):\n print(bon)\nif (int(a[n-1]) in [0,1,6,8] ):\n print(pon)\nif (int(a[n-1]) in [2,4,5,7,9] ):\n print(hon)', 'a = input()\nn = len(a)\nif (int(a[n-1])==3):\n print("bon")\nelif(int(a[n-1]) in [0,1,6,8]):\n print("pon")\nelif(int(a[n-1]) in [2,4,5,7,9]):\n print("hon")'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s195577056', 's367079248', 's519276365', 's535004461', 's636145293', 's607707405'] | [9128.0, 9048.0, 9044.0, 9116.0, 9124.0, 9056.0] | [19.0, 23.0, 19.0, 22.0, 19.0, 23.0] | [126, 106, 110, 173, 148, 154] |
p02675 | u484315555 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=int(input())\n\ndef a(N):\n if N%10==3:\n print("bon")\n elif N%10==0 or N%10==1 or N%10==6 or N%10==8:\n print("hon")\n else:\n print("pon")\n\na(N)', 'N=int(input())\n\ndef a(N):\n if N%10==3:\n print("bon")\n elif N%10==0 or N%10==1 or N%10==6 or N%10==8:\n print("pon")\n else:\n print("hon")\na(N)'] | ['Wrong Answer', 'Accepted'] | ['s842934533', 's428779881'] | [9076.0, 9076.0] | [22.0, 26.0] | [153, 152] |
p02675 | u484459425 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["K = int(input())\nS = list(input())\nlen_S = int(len(S))\nS1 = ' '\n\nif len_S <= K:\n print(K)\nelse:\n del S[K:]\n for x in S:\n S1 += x\n print(S1 + '...')", "N = int(input())\na = N % 100\nb = a % 10\nif b == 2 or b == 4 or b == 5 or b == 7 or b == 9:\n print('hon')\nelif b == 0 or b == 1 or b == 6 or b == 8:\n print('pon')\nelse:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s494159614', 's504653651'] | [9204.0, 9184.0] | [21.0, 24.0] | [154, 184] |
p02675 | u485819963 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = str(input()) \n\ncar = ''\nif N[-1] == 3:\n car = 'bon'\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 N[-1] == 8\n car = 'pon'\n\nprint(car)", "N = str(input()) \n\ncar = ''\nif N[-1] == 3:\n car = 'bon'\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:\n car = 'pon'\n\nprint(car)", "N = str(input()) \n\ncar = ''\nif N[-1] == 3:\n car = 'bon'\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:\n car = 'pon'\nelse:\n car = 'hon'\n\n\nprint(car)", "N = str(input()) \n\ncar = ''\nif N[-1] == 3:\n car = 'bon'\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8\n car = 'pon'\n\nprint(car)", "N = str(input()) \n\ncar = ''\nif N[-1] == '3':\n car = 'bon'\nelif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':\n car = 'pon'\nelse:\n car = 'hon'\n\n\n\nprint(car)"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s420816663', 's654970081', 's759625005', 's801274175', 's961115976'] | [9024.0, 9048.0, 9016.0, 8916.0, 9020.0] | [24.0, 25.0, 29.0, 26.0, 26.0] | [163, 167, 190, 166, 201] |
p02675 | u486209657 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\n\nif N % 10 == 2|4|5|7|9:\n print('hon')\nelif N % 10 == 0|1|6|8:\n print('pon')\nelse:\n print('bon')", "N = int(input())\n\nif N == 2 or N == 4 or N == 5 or\\\nN == 7 or N == 9:\n print('hon')\nelif N == 0 or N == 1 or N == 6 or\\\nN == 8:\n print('pon')\nelse:\n print('bon')", "N = int(input())\nN = N%10\n\nif N == 2 or N == 4 or N == 5 or\\\nN == 7 or N == 9:\n print('hon')\nelif N == 0 or N == 1 or N == 6 or\\\nN == 8:\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s887817794', 's911521776', 's072503716'] | [9108.0, 9112.0, 9184.0] | [28.0, 29.0, 28.0] | [116, 164, 173] |
p02675 | u487044452 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["hon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\nif int(n[-1]) in hon:\n print('hon')\nelif int(n[-1]) in pon:\n print('pon')\nelse:\n print('bon')", "n = str(input())\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\nif int(n[-1]) in hon:\n print('hon')\nelif int(n[-1]) in pon:\n print('pon')\nelse:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s808652491', 's921166799'] | [9048.0, 9180.0] | [22.0, 23.0] | [146, 163] |
p02675 | u489155878 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=input()\n\nN=int(N[-1])\n\nif N==3:\n print("bon")\nelif N in [1,2,4,5,7,9]:\n print("hon")\nelse N in [0,1,6,8]:\n print("pon")\n \n \n', 'N=input()\n \nN=int(N[-1])\n \nif N==3:\n print("bon")\nelif N in [2,4,5,7,9]:\n print("hon")\nelse :\n print("pon")\n'] | ['Runtime Error', 'Accepted'] | ['s524152069', 's586943745'] | [9024.0, 9160.0] | [24.0, 22.0] | [131, 111] |
p02675 | u490195279 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=int(input())\nif N%10==3:\n print("bon")\nelse if N%10==0:\n print("pon")\nelse if N%10==1:\n print("pon")\nelse if N%10==6:\n print("pon")\nelse if N%10==8:\n print("pon")\nelse:\n print("hon")', 'N=int(input())\nfor i in range(1):\n if N%10==3:\n print("bon")\n break\n if N%10==0:\n print("pon")\n break\n if N%10==1:\n print("pon")\n break\n if N%10==6:\n print("pon")\n break\n if N%10==8:\n print("pon")\n break\n print("hon")'] | ['Runtime Error', 'Accepted'] | ['s666422501', 's338251288'] | [8928.0, 9204.0] | [22.0, 23.0] | [190, 253] |
p02675 | u492691435 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["import math\n\n\n\n\n\n\n\n\n\n# return int_num\n\n\nline = input().split(' ')\n# int_line = list(map(lambda str_num: int(str_num), line))\nint_line = [int(str_num) for str_num in line]\nprint(int_line)\n\n\n\n# radian_m = M * 6\n\n\ndegree = abs((int_line[2] * 60 + int_line[3]) * 0.5 - int_line[3] * 6)\n\n\ndistance_squared = int_line[0] ** 2 + int_line[1] ** 2 - 2 * \\\n int_line[0] * int_line[1] * math.cos(math.radians(degree))\n\ndistance = math.sqrt(distance_squared)\n\n# print(distance)\n", 'num = input()\nprint(num)', "import math\n\n\n\n\n\n\n\n\n\n# return int_num\n\n\nline = input().split(' ')\n# int_line = list(map(lambda str_num: int(str_num), line))\nint_line = [int(str_num) for str_num in line]\n# print(int_line)\n\n\n\n# radian_m = M * 6\n\n\ndegree = abs((int_line[2] * 60 + int_line[3]) * 0.5 - int_line[3] * 6)\n\n\ndistance_squared = int_line[0] ** 2 + int_line[1] ** 2 - 2 * \\\n int_line[0] * int_line[1] * math.cos(math.radians(degree))\n\ndistance = math.sqrt(distance_squared)\n\nprint(distance)\n", 'num = input()\nif num.isdecimal():\n if int(num) <= 999:\n first_class_num = int(num[-1])\n if first_class_num in {2, 4, 5, 7, 9}:\n print("hon")\n elif first_class_num in {0, 1, 6, 8}:\n print("pon")\n elif first_class_num is 3:\n print("bon")\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s058300758', 's619140831', 's941751818', 's513567213'] | [9164.0, 8956.0, 9192.0, 9124.0] | [22.0, 21.0, 22.0, 24.0] | [833, 24, 833, 300] |
p02675 | u492749916 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = str(input())\nif N[2] == 3:\n print("bon")\nelif N[2] == 0 or N[2] == 1 or N[2] == 6 or N[2] == 8:\n print("pon")\nelse:\n print("hon")', 'N = str(input())\nif N[-1] == 3:\n print("bon")\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:\n print("pon")\nelse:\n print("hon")', 'N = input()\nif N[-1] == "3":\n print("bon")\nelif N[-1] == "0":\n print("pon")\nelif N[-1] == "1":\n print("pon")\nelif N[-1] == "6":\n print("pon")\nelif N[-1] == "8":\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s192034635', 's730344742', 's190856563'] | [9104.0, 9044.0, 9120.0] | [24.0, 24.0, 24.0] | [136, 141, 200] |
p02675 | u492959898 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\n\na,b,h,m = map(int,input().split())\n\ntan=h*30+0.5*m\ncho=6*m\n\nkakudo=float(100)\n\nif math.sqrt((tan-cho)*(tan-cho))>180:\n\tkakudo=360-math.sqrt((tan-cho)*(tan-cho))\n\tprint(math.sqrt(a*a+b*b-2*a*b*(math.cos(math.radians(kakudo)))))\n\nif math.sqrt((tan-cho)*(tan-cho))==180:\n\tprint(a+b)\n\nif math.sqrt((tan-cho)*(tan-cho))<180:\n\tkakudo=math.sqrt((tan-cho)*(tan-cho))\n\tprint(math.sqrt(a*a+b*b-2*a*b*(math.cos(math.radians(kakudo)))))', "k=int(input())\ns=str(input())\n\nif len(s)<=k:\n print(s)\nelif len(s)>k:\n print(s[0:k]+'...')", 'n=input()\n\nif int(n[-1])==2:\n print("hon")\nelif int(n[-1])==4:\n print("hon")\nelif int(n[-1])==5:\n print("hon")\nelif int(n[-1])==7:\n print("hon")\nelif int(n[-1])==9:\n print("hon")\nelif int(n[-1])==0:\n print("pon")\nelif int(n[-1])==1:\n print("pon")\nelif int(n[-1])==6:\n print("pon")\nelif int(n[-1])==8:\n print("pon")\nelse:\n print("bon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s070680213', 's501741336', 's253660056'] | [9240.0, 9144.0, 9212.0] | [24.0, 23.0, 22.0] | [437, 96, 364] |
p02675 | u494295478 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['#Ans\nN=str(input())\nif N[-1]=="3":\n print("bon")\nelif N[-1]==("0"or"1"or"6"or"8"): \n print("pon")\nelif N[-1]==("2"or"4"or"5"or"7"or"9"):\n print("hon")', '#Ans\nN=str(input())\nif N[-1]==("2"or"4"or"5"or"7"or"9"):\n print("hon")\nelif N[-1]==("0"or"1"or"6"or"8"): \n print("pon")\nelse:\n print("bon")', '#Ans\nnum=str(input())\nif num[-1]==("2"or"4"or"5"or"7"or"9"):\n print("hon")\nelif num[-1]==("0"or"1"or"6"or"8"): \n print("pon")\nelse:\n print("bon")', '#Ans\nN=str(input())\nif N[-1]=="3":\n print("bon")\nelif N[-1]==("0"or"1"or"6"or"8"): \n print("pon")\nelse:\n print("hon")', 'if N[-1]=="3":\n print("bon")\nelif N[-1]==("0"or"1"or"6"or"8"): \n print("pon")\nelse:\n print("hon")', 'N=str(input())\nif N[-1]=="2"or N[-1]=="4"or N[-1]=="5"or N[-1]=="7"or N[-1]=="9":\n print("hon")\nelif N[-1]=="0" or N[-1]=="1"or N[-1]=="6"or N[-1]=="8": \n print("pon")\nelif N[-1]=="3":\n print("bon")', '#Ans\nN=str(input())\nif N[-1]=="2"or N[-1]=="4"or N[-1]=="5"or N[-1]=="7"or N[-1]=="9":\n print("hon")\nelif N[-1]=="0" or N[-1]=="1"or N[-1]=="6"or N[-1]=="8": \n print("pon")\nelif N[-1]=="3":\n print("bon")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s077666109', 's135123213', 's219534056', 's233959237', 's675451490', 's746890838', 's252789121'] | [9048.0, 9048.0, 9112.0, 9108.0, 9036.0, 9020.0, 9136.0] | [20.0, 19.0, 23.0, 20.0, 22.0, 23.0, 22.0] | [170, 159, 165, 129, 109, 228, 215] |
p02675 | u496148227 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = input()\nif N % 10 == 3:\n print('bon')\nelif N % 10 == 0 or N % 10 == 1 or N % 10 == 6 or N % 10 == 8:\n print('pon')\nelse:\n print('hon')", "N = int(input())\nif N % 10 == 3:\n print('bon')\nelif N % 10 == 0 or N % 10 == 1 or N % 10 == 6 or N % 10 == 8:\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Accepted'] | ['s468082781', 's070077544'] | [9100.0, 9168.0] | [22.0, 20.0] | [141, 146] |
p02675 | u497188176 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N=input()\nB=0\nB=len(N)\nB=B-1\nif N[B]==2 and N[B]==4 and N[B]==5 and N[B]==7 and N[B]==9:\n print('hon')\nelif N[B]==0 and N[B]==1 and N[B]==6 and N[B]==8:\n print('pon')\nelse:\n print('bon')\n", "N=input()\nB=0\nB=len(N)\nB=B-1\nif N[B]==2 or N[B]==4 or N[B]==5 or N[B]==7 or N[B]==9:\n print('hon')\nelif N[B]==0 or N[B]==1 or N[B]==6 or N[B]==8:\n print('pon')\nelse:\n print('bon')", 'N=input()\nB=0\nB=len(N)\nB=B-1\nif N[B]=="2" or N[B]=="4" N[B]=="5" or N[B]=="7" or N[B]=="9":\n print(\'hon\')\nelif N[B]=="0" or N[B]=="1" or N[B]=="6"or N[B]=="8":\n print(\'pon\')\nelse:\n print(\'bon\')\n', "N=input()\nif N[2]=='2' and N[2]=='4' and N[2]=='5' and N[2]=='7' and N[2]=='9':\n print('hon')\nelif N[2]=='0' and N[2]=='1' and N[2]=='6' and N[2]=='8':\n print('pon')\nelse:\n print('bon')\n", "N=input()\nif N[2]==2 and N[2]==4 and N[2]==5 and N[2]==7 and N[2]==9:\n print('hon')\nelif N[2]==0 and N[2]==1 and N[2]==6 and N[2]==8:\n print('pon')\nelse:\n print('bon')\n", "N=input()\nB=0\nB=len(N)\nB=B-1\nif N[B]==2 or N[B]==4 or N[B]==5 or N[B]==7 or N[B]==9:\n print('hon')\nelif N[B]==0 or N[B]==1 or N[B]==6 or N[B]==8:\n print('pon')\nelse:\n print('bon')\n", "N=input()\nB=0\nB=len(N)\nB=B-1\nprint(B,N)\nif N[B]=='2' or N[B]=='4' or N[B]=='5' or N[B]=='7' or N[B]=='9':\n print('hon')\nelif N[B]=='0' or N[B]=='1' or N[B]=='6' or N[B]=='8':\n print('pon')\nelse:\n print('bon')\n", "N=input()\nif N[2]='2' and N[2]='4' and N[2]='5' and N[2]='7' andN[2]='9':\n print('hon')\nelif N[2]='0' and N[2]='1' and N[2]='6' and N[2]='8':\n print('pon')\nelse:\n print('bon')", "N=input()\nB=0\nB=len(N)\nB=B-1\n#print(B,N)\nif N[B]=='2' or N[B]=='4' or N[B]=='5' or N[B]=='7' or N[B]=='9':\n print('hon')\nelif N[B]=='0' or N[B]=='1' or N[B]=='6' or N[B]=='8':\n print('pon')\nelse:\n print('bon')\n"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s179139157', 's273257592', 's483962680', 's509365734', 's643777986', 's697809737', 's709291648', 's811921775', 's614157573'] | [9124.0, 9056.0, 8940.0, 9072.0, 9044.0, 9124.0, 9124.0, 8876.0, 9040.0] | [22.0, 24.0, 22.0, 24.0, 23.0, 24.0, 26.0, 21.0, 27.0] | [196, 188, 203, 195, 177, 189, 218, 184, 219] |
p02675 | u497592162 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["input_line = list(input())\nplace_of_one = int(input_line[-1])\nprint(place_of_one)\nif place_of_one in [2, 4, 5, 7, 9]:\n print('hon')\nelif place_of_one in [0, 1, 6, 8]:\n print('pon')\nelif place_of_one in [3]:\n print('bon')", "input_line = list(input())\nplace_of_one = int(input_line[-1])\nif place_of_one in [2, 4, 5, 7, 9]:\n print('hon')\nelif place_of_one in [0, 1, 6, 8]:\n print('pon')\nelif place_of_one in [3]:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s132572479', 's109201301'] | [9164.0, 9172.0] | [25.0, 22.0] | [229, 209] |
p02675 | u498699271 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['num=int(input())\nif num[:-1]==0 or num[:-1]==1 or num[:-1]==6 or num[:-1]==8:\n print("pon")\nelis num[:-1]==3:\n print("bon")\nelse:\n print("hon")', 'num=int(input())\nif num[:-1]==0 or num[:-1]==1 or num[:-1]==6 or num[:-1]==0:\n print("pon")\nelis num[:-1]==3:\n print("bon")\nelse:\n print("hon")', 'n = input()\nif n[-1] == "3":\n print("bon")\nelif n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == \'8\':\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s613995414', 's795603474', 's184728191'] | [9024.0, 8840.0, 9108.0] | [24.0, 22.0, 22.0] | [146, 146, 152] |
p02675 | u499286346 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import sys\n# from random import choice,randint\n# from bisect import bisect_left as bl \n# from bisect import bisect_right as br \n# from collections import deque,defaultdict,Counter\n# from math import sqrt,floor,ceil\n# from itertools import combinations,permutations\n# from heapq import heapify,heappop,heappush,heappushpop\n# inp=sys.stdin.readline\n# out=sys.stdout.write\n# flsh=sys.stdout.flush\n# ranomd string generator --> a = \'\'.join(random.choices(string.ascii_lowercase, k = 1000))\n \nsys.setrecursionlimit(10**9)\ninf = 10**20\neps = 1.0 / 10**10\nmod = 10**9+7\nmod1=998244353\ndd = [(-1,0),(0,1),(1,0),(0,-1)]\nddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]\n\n#fact=[1]\n\n# fact.append((fact[-1]*i)%mod)\n\n\n\n\n \ndef MI(): return map(int, inp().strip().split())\ndef LI(): return list(map(int, inp().strip().split()))\ndef LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]\ndef LI_(): return [int(x)-1 for x in inp().strip().split()] #use list comprehension for loops\ndef LF(): return [float(x) for x in inp().strip().split()] #use try and except for dictionaries\ndef LS(): return inp().strip().split() #declare local variables ... for functions assing them to variables\ndef I(): return int(inp().strip()) # before using example ... func = len for using len() funtcion\ndef F(): return float(inp().strip()) #sort dictionary after zipping\ndef S(): return inp().strip() #use map function for mapping list to a fuction\ndef pf(s): return out(s+\'\\n\')\ndef JA(a, sep): return sep.join(map(str, a)) #use this for string concatenation\ndef JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)\ndef modinv(n,p):return pow(n,p-2,p)\ndef ncr(n,r,p): \n t=((fact[n])*((ifact[r]*ifact[n-r])%p))%p\n return t\n\n####################Actualcode################################\n\n# Python program to find angle \n# between hour and minute hands \n\n# Function to Calculate angle b/w \n# hour hand and minute hand \ndef calcAngle(h,m): \n\t\tif (h == 12): \n\t\t\th = 0\n\t\tif (m == 60): \n\t\t\tm = 0\n\t\thour_angle = 0.5 * (h * 60 + m) \n\t\tminute_angle = 6 * m \n\t\tangle = abs(hour_angle - minute_angle) \n\t\tangle = min(360 - angle, angle) \n\t\treturn angle \n\ndef main():\n from math import cos,sqrt,radians\n a,b,h,m=MI()\n x = calcAngle(h,m)\n # print(x)\n x = radians(x)\n c = sqrt((a*a)+(b*b)-(2*a*b)*(cos(x)))\n print(c)\n\n\n\n\n######## Python 2 and 3 footer by Pajenegod and c1729\npy2 = round(0.5)\nif py2:\n from future_builtins import ascii, filter, hex, map, oct, zip\n range = xrange\n\nimport os, sys\nfrom io import IOBase, BytesIO\n\nBUFSIZE = 8192\nclass FastIO(BytesIO):\n newlines = 0\n def __init__(self, file):\n self._file = file\n self._fd = file.fileno()\n self.writable = "x" in file.mode or "w" in file.mode\n self.write = super(FastIO, self).write if self.writable else None\n\n def _fill(self):\n s = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))\n self.seek((self.tell(), self.seek(0,2), super(FastIO, self).write(s))[0])\n return s\n def read(self):\n while self._fill(): pass\n return super(FastIO,self).read()\n\n def readline(self):\n while self.newlines == 0:\n s = self._fill(); self.newlines = s.count(b"\\n") + (not s)\n self.newlines -= 1\n return super(FastIO, self).readline()\n\n def flush(self):\n if self.writable:\n os.write(self._fd, self.getvalue())\n self.truncate(0), self.seek(0)\n\nclass IOWrapper(IOBase):\n def __init__(self, file):\n self.buffer = FastIO(file)\n self.flush = self.buffer.flush\n self.writable = self.buffer.writable\n if py2:\n self.write = self.buffer.write\n self.read = self.buffer.read\n self.readline = self.buffer.readline\n else:\n self.write = lambda s:self.buffer.write(s.encode(\'ascii\'))\n self.read = lambda:self.buffer.read().decode(\'ascii\')\n self.readline = lambda:self.buffer.readline().decode(\'ascii\')\n\nsys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)\n\ninp = lambda: sys.stdin.readline().rstrip(\'\\r\\n\')\nout = lambda x: sys.stdout.write(x)\nflsh= lambda: sys.stdout.flush()\n\nif __name__ == "__main__":\n main()', 'import sys\n# from random import choice,randint\n# from bisect import bisect_left as bl \n# from bisect import bisect_right as br \n# from collections import deque,defaultdict,Counter\n# from math import sqrt,floor,ceil\n# from itertools import combinations,permutations\n# from heapq import heapify,heappop,heappush,heappushpop\n# inp=sys.stdin.readline\n# out=sys.stdout.write\n# flsh=sys.stdout.flush\n# ranomd string generator --> a = \'\'.join(random.choices(string.ascii_lowercase, k = 1000))\n \nsys.setrecursionlimit(10**9)\ninf = 10**20\neps = 1.0 / 10**10\nmod = 10**9+7\nmod1=998244353\ndd = [(-1,0),(0,1),(1,0),(0,-1)]\nddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]\n\n#fact=[1]\n\n# fact.append((fact[-1]*i)%mod)\n\n\n\n\n \ndef MI(): return map(int, inp().strip().split())\ndef LI(): return list(map(int, inp().strip().split()))\ndef LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]\ndef LI_(): return [int(x)-1 for x in inp().strip().split()] #use list comprehension for loops\ndef LF(): return [float(x) for x in inp().strip().split()] #use try and except for dictionaries\ndef LS(): return inp().strip().split() #declare local variables ... for functions assing them to variables\ndef I(): return int(inp().strip()) # before using example ... func = len for using len() funtcion\ndef F(): return float(inp().strip()) #sort dictionary after zipping\ndef S(): return inp().strip() #use map function for mapping list to a fuction\ndef pf(s): return out(s+\'\\n\')\ndef JA(a, sep): return sep.join(map(str, a)) #use this for string concatenation\ndef JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)\ndef modinv(n,p):return pow(n,p-2,p)\ndef ncr(n,r,p): \n t=((fact[n])*((ifact[r]*ifact[n-r])%p))%p\n return t\n\n####################Actualcode################################\ndef main():\n n = I()\n if n%10 in [2,4,5,7,9]:\n print("hon")\n elif n%10 in [0,1,6,8]:\n print("pon")\n elif n%10==3:\n print("bon")\n\n\n######## Python 2 and 3 footer by Pajenegod and c1729\npy2 = round(0.5)\nif py2:\n from future_builtins import ascii, filter, hex, map, oct, zip\n range = xrange\n\nimport os, sys\nfrom io import IOBase, BytesIO\n\nBUFSIZE = 8192\nclass FastIO(BytesIO):\n newlines = 0\n def __init__(self, file):\n self._file = file\n self._fd = file.fileno()\n self.writable = "x" in file.mode or "w" in file.mode\n self.write = super(FastIO, self).write if self.writable else None\n\n def _fill(self):\n s = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))\n self.seek((self.tell(), self.seek(0,2), super(FastIO, self).write(s))[0])\n return s\n def read(self):\n while self._fill(): pass\n return super(FastIO,self).read()\n\n def readline(self):\n while self.newlines == 0:\n s = self._fill(); self.newlines = s.count(b"\\n") + (not s)\n self.newlines -= 1\n return super(FastIO, self).readline()\n\n def flush(self):\n if self.writable:\n os.write(self._fd, self.getvalue())\n self.truncate(0), self.seek(0)\n\nclass IOWrapper(IOBase):\n def __init__(self, file):\n self.buffer = FastIO(file)\n self.flush = self.buffer.flush\n self.writable = self.buffer.writable\n if py2:\n self.write = self.buffer.write\n self.read = self.buffer.read\n self.readline = self.buffer.readline\n else:\n self.write = lambda s:self.buffer.write(s.encode(\'ascii\'))\n self.read = lambda:self.buffer.read().decode(\'ascii\')\n self.readline = lambda:self.buffer.readline().decode(\'ascii\')\n\nsys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)\n\ninp = lambda: sys.stdin.readline().rstrip(\'\\r\\n\')\nout = lambda x: sys.stdout.write(x)\nflsh= lambda: sys.stdout.flush()\n\nif __name__ == "__main__":\n main()'] | ['Runtime Error', 'Accepted'] | ['s832152106', 's801194024'] | [9616.0, 9444.0] | [24.0, 25.0] | [4423, 4045] |
p02675 | u502200133 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\na, b, h, m = map(int, input().split())\ntime = m + h*60\nangle = time * 0.5 - time * 6\nradian = math.radians(angle)\nrad = math.cos(radian)\nans = a**2 + b**2 - 2*a*b*rad\nprint(math.sqrt(ans))', 'n = str(input())\nif n[-1] == "2" or n[-1] == "4" or n[-1] == "5" or n[-1] == "7" or n[-1] == "9":\n print("hon")\nelif n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == "8":\n print("pon")\nelse:\n print("bon")'] | ['Runtime Error', 'Accepted'] | ['s462028918', 's910832790'] | [9160.0, 9056.0] | [21.0, 19.0] | [200, 221] |
p02675 | u502776708 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = input()\n\nlast_digit = int(n[-1])\nif n in [2,4,5,7,9]:\n print('hon')\nelif n in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')\n", "n = input()\n\nlast_digit = int(n[-1])\n\nif last_digit in [2,4,5,7,9]:\n print('hon')\nelif last_digit in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')\n"] | ['Wrong Answer', 'Accepted'] | ['s813228451', 's921857008'] | [9108.0, 9104.0] | [21.0, 20.0] | [136, 155] |
p02675 | u503111914 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\na, b, h, m = map(int, input().split())\nx = 30 * h + (m * 0.5) % 360\ny = m * 6\nsa = abs(x - y)\nprint(x,y,sa)\nif a > b:\n c = b\n b = a\n a = c\nt = (math.sin(math.radians(sa))) * b\nf = math.sqrt(b ** 2 - t ** 2)\nif sa >= 180:\n a = -a\nprint(math.sqrt((f - a) ** 2 + t ** 2))', 'A = input()\nif A[-1] == "3":\n print("bon")\nelif A[-1] == "0" or A[-1] == "1" or A[-1] == "6" or A[-1] == "8":\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Accepted'] | ['s686071702', 's228300906'] | [9220.0, 9108.0] | [21.0, 25.0] | [292, 152] |
p02675 | u504856568 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = input()\nnum = len(n)\nif int(n[num - 1]) == 2 or int(n[num - 1]) == 4 or int(n[num - 1]) == 5 or int(n[num - 1]) == 7 or int(n[num - 1]) == 9:\n str = 'hon'\nelif int(n[num - 1]) == 3:\n str = 'pon'\nelse:\n str = 'bon'\n \nprint(str)", "n = input()\nnum = len(n)\nif int(n[num - 1]) == 2 or int(n[num - 1]) == 4 or int(n[num - 1]) == 5 or int(n[num - 1]) == 7 or int(n[num - 1]) == 9:\n str = 'hon'\nelif int(n[num - 1]) == 3:\n str = 'bon'\nelse:\n str = 'pon'\n \nprint(str)\n "] | ['Wrong Answer', 'Accepted'] | ['s410193664', 's815174236'] | [9192.0, 9184.0] | [21.0, 20.0] | [242, 244] |
p02675 | u507145838 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['#-*-coidng:utf-8-*-\nn = input()\n\nif n[-1] == 3:\n print("bon")\nelif n[-1] == 0 or n[-1] == 1 or n[-1] == 6 or n[-1] == 8:\n print("pon")\nelse:\n print("hon")', '#-*-coidng:utf-8-*-\nn = input()\n\nif n[-1] == "3":\n print("bon")\nelif n[-1] in ["0", "1", "6", "8"]:\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s864171213', 's862246651'] | [9080.0, 9052.0] | [21.0, 22.0] | [157, 136] |
p02675 | u508061226 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = int(input());\na = n % 10\n\nif a == 2 or a ==4 or a == 5 or 7 a == 9:\n print("hon")\nelif a ==0 or a == 1 or a == 6 or a == 8:\n print("pon")\nelse:\n print("bon")\n ', 'n = int(input());\na = n % 10\n\nif a == 2 or a ==4 or a == 5 or a == 7 or a == 9:\n print("hon")\nelif a ==0 or a == 1 or a == 6 or a == 8:\n print("pon")\nelse:\n print("bon")\n \n'] | ['Runtime Error', 'Accepted'] | ['s318532284', 's064354753'] | [9012.0, 9164.0] | [23.0, 19.0] | [167, 176] |
p02675 | u508273185 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = input()\n\n#print(n[-1])\nnn = [0,1,6,8]\nif n[-1]=="3":\n print("bon")\n\nelif n[-1] in nn:\n print("pon")\n\nelse:\n print("hon")', 'n = input()\n\n#print(n[-1])\nnn = [0,1,6,8]\nif n[-1]==3:\n print("bon")\nelif n[-1] in nn:\n print("pon")\nelse:\n print("hon")', 'n = input()\n\n#print(n[-1])\nnn = ["0","1","6","8"]\nif n[-1]=="3":\n print("bon")\n\nelif n[-1] in nn:\n print("pon")\n\nelse:\n print("hon")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s535018927', 's572525190', 's317753392'] | [9064.0, 8980.0, 9120.0] | [25.0, 23.0, 20.0] | [133, 129, 141] |
p02675 | u509029769 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\nif N[-1] == 3:\n print(N+"bon")\n\nelif N[-1] in [\'0\',\'1\',\'6\',\'8\']:\n print(N+"pon")\n\nelse:\n print(N+"hon")', 'N = input()\n\nif N[-1] == "3":\n print("bon")\n\nelif N[-1] in [\'0\',\'1\',\'6\',\'8\']:\n print("pon")\n\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s920003901', 's544030912'] | [9028.0, 8804.0] | [30.0, 26.0] | [124, 121] |
p02675 | u509739538 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['x = input()\n\nif x[-1] in [2,4,5,7,9]:\n print("hon")\nelif x[-1] in [0,1,6,8]:\n print("pon")\nelse:\n print("bon")', 'x = input()\n\no = int(x[-1])\n\nif o in [2,4,5,7,9]:\n print("hon")\nelif o in [0,1,6,8]:\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s661636113', 's777371723'] | [9108.0, 9140.0] | [22.0, 23.0] | [113, 121] |
p02675 | u510956234 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['S=str(input())\nif S[-1]==2 or 4 or 5 or 7 or 9:\n print("hon")\nelif S[-1]==0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("bon")', 'S=str(input())\nif S[-1]=="2" or S[-1]=="4" or S[-1]=="5" or S[-1]=="7" or S[-1]=="9":\n print("hon")\nelif S[-1]=="0" or S[-1]=="1" or S[-1]=="6" or S[-1]=="8":\n print("pon")\nelse:\n print("bon")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s129975418', 's775673334'] | [9048.0, 9116.0] | [22.0, 22.0] | [128, 197] |
p02675 | u511824539 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\ne = int(N[-1])\nif e in (2,4,5,7,9):\n print('hon')\nelif e in (0,1,6,8):\n print('pon')\nelse:\n print('bon')", "N = input()\ne = int(N[-1])\nif e in (2,4,5,7,9):\n print('hon')\nelif e in (0,1,6,8):\n print('pon')\nelse:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s327726583', 's106851511'] | [9080.0, 9060.0] | [26.0, 28.0] | [130, 125] |
p02675 | u516079286 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['s = input()\nif (s[-1]==2,4,5,7,9):\n print("hon")\nelif (s[-1]==0,1,6,8):\n print("pon")\nelse:\n print("bon")', 's = input()\nprint(s)\nif (s[-1]=="2" or s[-1]=="4" or s[-1]=="5" or s[-1]=="7" or s[-1]=="9"):\n print("hon")\nelif (s[-1]=="0" or s[-1]=="1" or s[-1]=="6" or s[-1]=="8"):\n print("pon")\nelse:\n print("bon")', '\ns = input()\n\xa0\nif\xa0(s[-1]==2,4,5,7,9):\n\xa0\xa0print("hon")\nelif\xa0(s[-1]==0,1,6,8):\n\xa0\xa0print("pon")\nelse:\n\xa0\xa0print("bon")\n\n\n\n\n\n', '\n\ns = int(input())\n\xa0\nif\xa0(s[-1]==2,4,5,7,9):\n\xa0\xa0print("hon")\nelif\xa0(s[-1]==0,1,6,8):\n\xa0\xa0print("pon")\nelse:\n\xa0\xa0print("bon")\n', 's = input()\nif (s[-1]=="2" or s[-1]=="4" or s[-1]=="5" or s[-1]=="7" or s[-1]=="9"):\n print("hon")\nelif (s[-1]=="0" or s[-1]=="1" or s[-1]=="6" or s[-1]=="8"):\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s259595499', 's452720708', 's730057303', 's906955794', 's970290410'] | [9044.0, 9132.0, 8944.0, 9004.0, 9032.0] | [25.0, 22.0, 25.0, 19.0, 22.0] | [108, 205, 128, 129, 196] |
p02675 | u516554284 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['s=input()\n\nt=int(s[-1])\n\nif t==2 or 4 or 5 or 7 or 9:\n print("hon")\nelif t==0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("bon")', 's=input()\n\nt=int(s[-1])\n\nif t==2 or t==4 or t== 5 or t== 7 or t== 9:\n print("hon")\nelif t==0 or t== 1 or t== 6 or t== 8:\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s335401979', 's939169442'] | [9168.0, 9172.0] | [22.0, 23.0] | [130, 157] |
p02675 | u516579758 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n=str(input())\na=n[-1]\nprint(a)\nif a=='2' or n=='4' or a=='5' or a=='7' or a=='9':\n print('hon')\nelif a=='3':\n print('bon')\nelse:\n print('pon')", "n=str(input())\na=n[-1]\nprint(a)\nif a=='2' or n=='4' or a=='5' or a=='7' or a=='9':\n print('hon')\nelif a=='3':\n print('bon')\nelse:\n print('pon')", "n=str(input())\na=n[-1]\nif a=='2' or n=='4' or a=='5' or a=='7' or a=='9':\n print('hon')\nelif a=='3':\n print('bon')\nelif a==0 or a==1 or a==6 or a==8:\n print('pon')", "n=str(input())\na=n[-1]\nif a=='3':\n print('bon')\nelif a=='0'or a=='1'or a=='6'or a=='8':\n print('pon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s470587538', 's627475800', 's649627014', 's954963399'] | [9044.0, 9108.0, 9120.0, 9044.0] | [21.0, 23.0, 23.0, 22.0] | [152, 152, 172, 130] |
p02675 | u516678561 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["pen = input()[-1]\n\nif pen == (2 or 4 or 5 or 7 or 9):\n print('hon')\nelif pen == (0 or 1 or 6 or 8):\n print('pon')\nelif pen == 3:\n print('bon')\n", "pen = (input()[-1])\n\nprint(pen)\n\nif pen == 2 or pen == 4 or pen == 5 or pen == 7 or pen == 9:\n print('hon')\nelif pen == 0 or pen == 1 or pen == 6 or pen == 8:\n print('pon')\nelif pen == 3:\n print('bon')\n", "pen = input()[-1]\n\nif pen == 2 or 4 or 5 or 7 or 9:\n print('hon')\nelif pen == 0 or 1 or 6 or 8:\n print('pon')\nelif pen == 3:\n print('bon')\n", "pen = (input()[-1])\n\nif pen in [2, 4, 5, 7, 9]:\n print('hon')\nelif pen in [0, 1, 6, 8]:\n print('pon')\nelif pen in [3]:\n print('bon')\n", "pen = int(input()[-1])\n\nif pen in [2, 4, 5, 7, 9]:\n print('hon')\nelif pen in [0, 1, 6, 8]:\n print('pon')\nelif pen in [3]:\n print('bon')\n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s031428427', 's605056015', 's835828789', 's889317335', 's433746063'] | [9036.0, 9016.0, 8968.0, 9012.0, 9112.0] | [25.0, 26.0, 28.0, 30.0, 30.0] | [152, 211, 148, 142, 145] |
p02675 | u517674755 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=int(input())\ncount=0\nwhile n>0:\n count=count+1\n n=n//10\nif n=2 or n=4 or n=5 or n=7 or n=9:\n print ("hon")\nif n=0 or n=1 or n=6 or n=8:\n print ("pon")\nif n=3:\n print("bon")\n ', 'n=int(input())\ncount=0\nwhile n>0:\n count=count+1\n n=n//10\nif n=2 or n=4 or n=5 or n=7 or n=9:\n print ("hon")\nif n=0 or n=1 or n=6 or n=8:\n print ("pon")\nelse:\n print("bon")\n ', "n = int(input())\nl = int(repr(n)[-1])\nif l ==2 or l==4 or l==5 or l==7 or l==9:\n print('hon')\nif l==0 or l==1 or l==6 or l==8:\n print('pon')\nif l ==3:\n print('bon')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s169163280', 's550801209', 's861775576'] | [8960.0, 8888.0, 9120.0] | [23.0, 25.0, 22.0] | [182, 180, 174] |
p02675 | u517754855 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=input()\nif N[-1] == "3":\n return "bon"', 'N', 'N=input()\nif N[-1] == "3":\n print("bon")\nelif int(N[-1]) in [2,4,5,7,9]:\n print("hon")\nelse:\n print("pon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s059429180', 's549288575', 's292590179'] | [9024.0, 9088.0, 9052.0] | [25.0, 24.0, 20.0] | [41, 1, 109] |
p02675 | u518929058 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = int(input())\na = n % 10\nif a == 3:\n print('bon')\nelif a == 0 | a == 1 | a == 6 | a == 8:\n print('pon')\nelse:\n print('hon')", "n = int(input())\na = n % 10\nif a == 3:\n print('bon')\nelif a == 1 | a == 6 | a == 8:\n print('pon')\nelse:\n print('hon')", "n = int(input())\na = n % 10\nif a == 3:\n print('bon')\nelif a == 0 or a == 1 or a == 6 or a == 8:\n print('pon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s154426458', 's687540027', 's131092192'] | [9112.0, 9080.0, 9084.0] | [25.0, 28.0, 27.0] | [135, 126, 138] |
p02675 | u518958552 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = input()\ns = list(n)\nif s[-1] == 2 or 4 or 5 or 7 or 9:\n print("hon")\nelif s[-1] == 0 or 1 or 6 or 8:\n print("pon")\nelif s[-1] == 3:\n print("bon")', 'n = input()\ns = list(n)\nm = s[-1]\nm = int(m)\nif m == 0:\n print("pon")\nelif m == 1:\n print("pon")\nelif m == 2:\n print("hon")\nelif m == 3:\n print("bon")\nelif m == 4:\n print("hon")\nelif m == 5:\n print("hon")\nelif m == 6:\n print("pon")\nelif m == 7:\n print("hon")\nelif m == 8:\n print("pon")\nelif m == 9:\n print("hon")\n'] | ['Wrong Answer', 'Accepted'] | ['s240283224', 's968518558'] | [9048.0, 9116.0] | [21.0, 24.0] | [158, 343] |
p02675 | u521271655 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = int(input())\nd = N%100\nif d == 2 or 4 or 5 or 7 or 9 :\n print("hon")\nelif d == 0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("bon")', 'N = int(input())\nd = N%10\nif d == 2 or d == 4 or d == 5 or d == 7 or d == 9 :\n print("hon")\nelif d == 0 or d == 1 or d == 6 or d == 8:\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s261053290', 's243391106'] | [9088.0, 9128.0] | [22.0, 20.0] | [143, 177] |
p02675 | u525722336 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N=int(input(''))\nif (N==2 or 4 or 5 or 7 or 9):\n print('hon')\nelif (N==0 or 1 or 6 or 8):\n print('pon')\nelse :\n print('bon')", "N=input('')\nif N==2 or 4 or 5 or 7 or 9:\n print('hon')\nelif N==0 or 1 or 6 or 8:\n print('pon')\nelse:\n print('bon')", "N=int(input(''))\nif (N==2 or 4 or 5 or 7 or 9):\n print('hon')\nelif (N==0 or 1 or 6 or 8):\n print('pon')\nelse :\n print('bon')", "N=input()\ncal=N[-1]\n\nif cal=='2' or cal=='4' or cal=='5' or cal=='7' or cal=='9':\n print('hon')\nelif cal=='0' or cal=='1' or cal=='6' or cal=='8':\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s114758727', 's437772633', 's663780225', 's193051110'] | [9076.0, 9048.0, 9068.0, 8984.0] | [21.0, 22.0, 21.0, 24.0] | [127, 117, 127, 183] |
p02675 | u525796732 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import sys\nimport math\nfrom heapq import *\nimport fractions\nfrom collections import defaultdict\nstdin = sys.stdin\n \nns = lambda: stdin.readline().rstrip()\nni = lambda: int(stdin.readline().rstrip())\nnm = lambda: map(int, stdin.readline().split())\nnl = lambda: list(map(int, stdin.readline().split()))\n\nmod=10**9+7\nzero=0\ncounter0=defaultdict(int)\ncounter1=defaultdict(int)\nN=int(input())\nfor i in range(N):\n x,y=nm()\n if(x==0 and y==0):\n zero+=1\n continue\n g=fractions.gcd(x,y)\n x/=g\n y/=g\n if(y<0):\n x=-x\n y=-y\n if(y==0 and x<0):\n x=-x\n y=-y\n rot90=False\n if(x<0):\n rot90=True\n if(rot90):\n tmp = x\n x=y\n y=-tmp\n if(rot90):\n counter0[(x,y)]+=1\n else:\n counter1[(x,y)]+=1\n counter0[(x,y)]+=0\n\nans=1\nfor key,cnt0 in counter0.items():\n cnt1=counter1[key]\n now=1\n now+=2**cnt0-1\n now+=2**cnt1-1\n now%=mod\n ans*=now\n ans%=mod\n \nans+=zero\nans-=1\n\nprint(ans%mod)\n\n\n\n\n', "import sys\nstdin = sys.stdin\n \nns = lambda: stdin.readline().rstrip()\nni = lambda: int(stdin.readline().rstrip())\nnm = lambda: map(int, stdin.readline().split())\nnl = lambda: list(map(int, stdin.readline().split()))\n\n\nN=int(input())\nif(N%10==2 or N%10==4 or N%10==5 or N%10==7 or N%10==9):\n print('hon')\n\nif(N%10==0 or N%10==1 or N%10==6 or N%10==8 ): \n print('pon')\n\nif(N%10==3): \n print('bon')\n"] | ['Runtime Error', 'Accepted'] | ['s842312917', 's859661502'] | [10440.0, 9132.0] | [31.0, 24.0] | [1020, 409] |
p02675 | u526407267 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['a = input()\nif a[-1]==3:\n print("bon")\nelif a[-1]==0 or a[-1]==1 or a[-1]==6 or a[-1]==8:\n print("pon")\nelse:\n print("hon")', 'a = int(input())\nb=str(a)\nc=b[-1]\nd=int(c)\nif d==3:\n print("bon")\nelif d==0 or d==1 or d== 6 or d==8:\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s747664447', 's915871287'] | [9108.0, 9168.0] | [25.0, 19.0] | [126, 138] |
p02675 | u528793636 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["K = int(input())\nS = input()\n\nif K >= len(S):\n print(S)\nelif K < len(S):\n print(S[0:K]+'...')\n", "N = int(input())\n\nif N % 10 in [2,4,5,7,9]:\n print('hon')\nelif N % 10 in [0,1,6,8]:\n print('pon')\nelif N % 10 in [3]:\n print('bon')\n"] | ['Runtime Error', 'Accepted'] | ['s973419885', 's710991631'] | [9088.0, 9068.0] | [24.0, 29.0] | [100, 141] |
p02675 | u531599639 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\nif N%10 == (0 or 1 or 6 or 8):\n print('pon')\nelif N%10 == 3:\n print('bon')\nelse:\n print('hon')", "N = int(input())\nif N%10 == 0 or N%10 == 1 or N%10 == 6 or N%10 == 8:\n print('pon')\nelif N%10 == 3:\n print('bon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Accepted'] | ['s170834345', 's059908697'] | [9168.0, 9164.0] | [21.0, 23.0] | [114, 136] |
p02675 | u531839203 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['a = input()\nif (a[-1] == 2,4,5,7,9):\n print("hon")\nif (a[-1] == 0,1,6,8):\n print("pon")\nif (a[-1] == 3):\n print("bon")', 'a = int(input())\nif (a[-1] == 2,4,5,7,9):\n print("hon")\nif (a[-1] == 0,1,6,8):\n print("pon")\nif (a[-1] == 3):\n print("bon")', 'N = str(input())\nb = int(N[-1])\nif (b==2 or b==4 or b==5 or b==7 or b==9):\n print("hon")\nelif (b==0 or b==1 or b==6 or b==8):\n print("pon")\nelif (b==3):\n print("bon")\nelse:\n print("Error")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s127957542', 's766307337', 's939679097'] | [9012.0, 9108.0, 9060.0] | [24.0, 20.0, 20.0] | [121, 126, 192] |
p02675 | u534918612 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=(input())\nn%=10\nif(n==3)\n\tprint("bon")\nelse if(n==0 or n==1 or n==6 or n==8)\n\tprint("pon")\nelse\n\tprint("hon")', 'n=int(input())\nn%=10\nif(n==3):\n\tprint("bon")\nelif(n==0 or n==1 or n==6 or n==8):\n\tprint("pon")\nelse:\n\tprint("hon")\n'] | ['Runtime Error', 'Accepted'] | ['s607245698', 's645452745'] | [8944.0, 9120.0] | [22.0, 21.0] | [111, 115] |
p02675 | u537217069 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = int(input())\n\nif(N == 3):\n print("bon")\nelif(N == 0 or N == 1 or N == 6 or N == 8):\n print("pon")\nelse:\n print("hon")', 'N = int(input())\n\nN_1d = N % 10\n\nif(N_1d == 3):\n print("bon")\nelif(N_1d == 0 or N == 1 or N == 6 or N == 8):\n print("pon")\nelse:\n print("hon")', 'N = int(input())\n\nN_1d = N % 10\n\nif(N_1d == 3):\n print("bon")\nelif(N_1d == 0 or N_1d == 1 or N_1d == 6 or N_1d == 8):\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s625490856', 's787520232', 's544738485'] | [9164.0, 9008.0, 9112.0] | [28.0, 29.0, 29.0] | [130, 151, 160] |
p02675 | u538405269 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = input()\n\nif n[-1] in [2,4,5,7,9]:\n print('hon')\nelif n[-1] in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')", "n = input()\n\nif int(n[-1]) in [2,4,5,7,9]:\n print('hon')\nelif int(n[-1]) in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')\n"] | ['Wrong Answer', 'Accepted'] | ['s803965797', 's766739224'] | [8972.0, 9168.0] | [23.0, 23.0] | [113, 124] |
p02675 | u538817603 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import sys\ninput = sys.stdin.readline\n\ndef main():\n N = int(input()[-1])\n if N == 3:\n print("bon")\n elif N == 0 or N == 1 or N == 6 or N == 8:\n print("pon")\n else:\n print("hon")\n\nif __name__ == \'__main__\':\n main()', 'def main():\n N = int(input()[-1])\n if N == 3:\n print("bon")\n elif N == 0 or N == 1 or N == 6 or N == 8:\n print("pon")\n else:\n print("hon")\n\nif __name__ == \'__main__\':\n main()'] | ['Runtime Error', 'Accepted'] | ['s453573327', 's649998662'] | [9176.0, 9168.0] | [23.0, 23.0] | [249, 210] |
p02675 | u543122853 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = str(input())\n\nN = '{0:03d}'.format(int(n))[2]\nprint(N)\nif N == '2' or N == '4' or N=='5' or N=='7' or N=='9' :\n print('hon')\nelif N=='3':\n print('bon')\nelse:\n print('pon')\n ", "n = str(input())\n\nN = '{0:03d}'.format(int(n))[2]\nif N == '2' or N == '4' or N=='5' or N=='7' or N=='9' :\n print('hon')\nelif N=='3':\n print('bon')\nelse:\n print('pon')\n "] | ['Wrong Answer', 'Accepted'] | ['s262440381', 's722914354'] | [9168.0, 9160.0] | [23.0, 21.0] | [181, 172] |
p02675 | u543489264 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["from sys import stdin\n\nN = map(int, stdin.readline().rstrip().split())\nhon = {2,4,5,7,9}\npon = {0,1,6,8}\nbon = {3}\n\nN = N % 10\n\nif N in hon:\n print('hon')\nelif N in pon:\n print('pon')\nelse:\n print('bon')", "from sys import stdin\n\nN = int(input()) \nhon = {2,4,5,7,9}\npon = {0,1,6,8}\nbon = {3}\n\nN = N % 10\n\nif N in hon:\n print('hon')\nelif N in pon:\n print('pon')\nelse:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s094976410', 's186198661'] | [9052.0, 9180.0] | [25.0, 21.0] | [212, 182] |
p02675 | u543690404 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = input()\n\nif N[:-1] in [2,4,5,7,9]:\n print('hon')\nelif N[:-1] in [0,1,6,8]:\n print('pon')\nelif N[:-1]:\n print('bon')\n", "N = input()\ne = int(N[-1:])\n\nif e in [2,4,5,7,9]:\n print('hon')\nelif e in [0,1,6,8]:\n print('pon')\nelif e == 3:\n print('bon')\n"] | ['Wrong Answer', 'Accepted'] | ['s242389579', 's821259606'] | [9104.0, 9156.0] | [21.0, 22.0] | [123, 129] |
p02675 | u544272759 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['k=int(input())\ns=str(input())\nif len(s) <= k:\n print(s)\nelse:\n print(s[0:k] + "...")', 's=str(int(input()))[-1]\n \nif s in ["2", "4", "5", "7", "9"]:\n print("hon")\nelse if s == 3:\n print("bon")\nelse:\n print("pon")', 's=str(input())[-1]\n \nif s in ["2", "4", "5", "7", "9"]:\n print("hon")\nelse if s == 3:\n print("bon")\nelse:\n print("pon")', 'n=int(input())\ns=str(n)\nif s[-1] == 2 or 4 or 5 or 7 or 9:\n print("hon")\nelse if s[-1] == 3:\n print("bon")\nelse:\n print("pon")', 's=str(int(input()))[-1]\n\nif s in [2, 4, 5, 7, 9]:\n print("hon")\nelse if s == 3:\n print("bon")\nelse:\n print("pon")', 'n=int(input())\ns=str(n)\nif s[-1] in [2, 4, 5, 7, 9]:\n print("hon")\nelse if s[-1] == 3:\n print("bon")\nelse:\n print("pon")', "S = str(input())[-1]\ntmp = ['0', '1', '6', '8']\nif S == '3':\n print('bon')\nelif S in tmp:\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s038715221', 's265129688', 's342750665', 's381204660', 's697069885', 's887625155', 's654722878'] | [9140.0, 9044.0, 8748.0, 8908.0, 8784.0, 9024.0, 8984.0] | [25.0, 24.0, 21.0, 22.0, 23.0, 20.0, 23.0] | [86, 127, 122, 129, 116, 123, 132] |
p02675 | u547375079 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['x = input()[-1]\n\nif x in [2,4,5,7,9]:\n print("hon")\nelif x in [0,1,6,8]:\n print("pon")\nelse:\n print("bon")', 'x = int(input()[-1])\n\nif x in [2,4,5,7,9]:\n print("hon")\nelif x in [0,1,6,8]:\n print("pon")\nelse:\n print("bon")\n'] | ['Wrong Answer', 'Accepted'] | ['s496625062', 's647649213'] | [9048.0, 9100.0] | [22.0, 24.0] | [109, 115] |
p02675 | u550146922 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = int(input())\nlist1 =[2,4,5,7,9]\nlist2 =[0,1,6,8]\nlist3 =[3]\n\nif n%10 == any(list1):\n print("hon")\nelif n%10 == any(list2):\n print("pon")\nelse:\n print("bon")\n', 'n = int(input())\nlist1 =[2,4,5,7,9]\nlist2 =[0,1,6,8]\nlist3 =[3]\n\nif n%10 in list1:\n print("hon")\nelif n%10 in list2:\n print("pon")\nelse:\n print("bon")\n'] | ['Wrong Answer', 'Accepted'] | ['s962208555', 's054313778'] | [9080.0, 9164.0] | [34.0, 28.0] | [170, 160] |
p02675 | u551058317 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input().strip()\nif N[-1] in [2, 4, 5, 7, 9]:\n print("hon")\nelif N[-1] in [0, 1, 6, 8]:\n print("pon")\nelse:\n print("bon")\n', 'N = input()\nif N[-1] in [2, 4, 5, 7, 9]:\n print("hon")\nelif N[-1] in [0, 1, 6, 8]:\n print("pon")\nelse:\n print("bon")', 'N = input().strip()\nif int(N[-1]) in [2, 4, 5, 7, 9]:\n print("hon")\nelif int(N[-1]) in [0, 1, 6, 8]:\n print("pon")\nelse:\n print("bon")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s559114270', 's824918257', 's334774181'] | [9088.0, 9036.0, 9160.0] | [21.0, 22.0, 23.0] | [134, 125, 144] |
p02675 | u554926677 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = str(input())\n\nn = int(N[-1])\nprint(n)\nif n in (2,4,5,7,9):\n print('hon')\nelif n in (0,1,6,8):\n print('pon')\nelse:\n print('bon')", "N = str(input())\n\nn = int(N[-1])\nif n in (2,4,5,7,9):\n print('hon')\nelif n in (0,1,6,8):\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s227474019', 's511619211'] | [9180.0, 9176.0] | [22.0, 23.0] | [140, 131] |
p02675 | u556477263 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = int(input())\nif n < 1 or n > 100:\n exit()\n\nn1 = input()\n\ni = len(n1)\nif i < 1 or i > 100:\n exit()\n\nn2 = '...'\n\nif n >= i:\n print(n1)\nelse:\n print(n1[:n] + n2)", "n = list(input())\n\ni = len(n) - 1\n\nif n[i] == '3':\n print('bon')\nelif n[i] == '0' or n[i] == '1' or n[i] == '6' or n[i] == '8':\n print('pon')\nelse:\n print('hon')\n"] | ['Runtime Error', 'Accepted'] | ['s418707004', 's344544286'] | [9036.0, 9000.0] | [25.0, 28.0] | [174, 171] |
p02675 | u561691391 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\na, b, h, m = map(int, input().split())\n\ntheta = h * 30 - m * 5.5\nresult = a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(theta))\nprint(result ** (1 / 2))\n', "str = input()\n\nif str[-1] == '2' or str[-1] == '4' or str[-1] == '5' or str[-1] == '7' or str[-1] == '9':\n print('hon')\nelif str[-1] == '3':\n print('bon')\nelse:\n print('pon')\n"] | ['Runtime Error', 'Accepted'] | ['s766813782', 's087619129'] | [9040.0, 8932.0] | [23.0, 20.0] | [171, 184] |
p02675 | u563170985 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\nif N%10 == [2,4,5,7,9]:\n print('hon')\nelif N%10 == [0,1,6,8]:\n print('pon')\nelse:\n print('bon')", "N = int(input())\nif N%10 in [2,4,5,7,9]:\n print('hon')\nelif N%10 in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s863636430', 's576572771'] | [9168.0, 9200.0] | [23.0, 19.0] | [115, 121] |
p02675 | u563430990 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = int(input("enter a number: "))\ndef f(N):\n if N < 1000:\n num = str(N)\n if num[-1] == "3":\n return "bon"\n elif num[-1] in ["0", "1", "6", "8"]:\n return "pon"\n else:\n return "hon"\n else:\n return "Please enter an interger between not exceeding 999"\n\nprint (f(N))', 'from math import cos, pi\n\nvalue = input().split()\nA = int(value[0])\nB = int(value[1])\nH = int(value[2])\nM = int(value[3])\n\nif 1 <= A <= 1000 and 1 <= B <= 1000 and 0 <= H <=11 and 0 <= M <= 59:\n if abs(float(H)*30 - float(M)*6) == 90 :\n print(pow(float(A)**2 + float(B)**2, 0.5))\n else:\n print(pow(float(A)**2 + float(B)**2 - 2*float(A)*float(B)*cos(pi*(float(H)*30 - float(M)*6)/180),0.5))\nelse:\n print("Choose value in interval define on the exercise")', 'K = int(input(), 10)\nS = input().lower()\n\nif 0 < K < 101 and 0 < len(S) < 101:\n if len(S) < K:\n print(S)\n else:\n print(S[:K] + "...") \nelse:\n print("Try again with K and length of S between 1 and 100")\n', 'N = int(input())\n\nif N < 1000:\n num = str(N)\n if num[-1] == "3":\n print("bon")\n elif num[-1] in ["0", "1", "6", "8"]:\n print("pon")\n else:\n print("hon")\nelse:\n print("Please enter an interger between not exceeding 999") '] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s790874787', 's841063041', 's847600540', 's942317078'] | [9160.0, 9128.0, 9040.0, 9156.0] | [21.0, 22.0, 22.0, 21.0] | [336, 477, 225, 257] |
p02675 | u563711100 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = input()\nn = dict(n)\n\nl = [0,1,6,8]\nif n[-1] == "3":\n print("bon")\nelif str(n[-1]) in l:\n print("pon")\nelse:\n print("hon")', 'n = input()\nn = list(n)\nl = [0,1,6,8]\nif n[-1] == "3":\n print("bon")\nelif int(n[-1]) in l:\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Accepted'] | ['s581917106', 's889752025'] | [9112.0, 9176.0] | [24.0, 21.0] | [128, 127] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.