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
u044964932
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 本".
['def main():\n n = list(input())[-1]\n if n in [2, 4, 5, 7, 9]:\n ans = \'hon\'\n elif n in [0, 1, 6, 8]:\n ans = \'pon\'\n else:\n ans = \'bon\'\n print(ans)\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n n = int(list(input())[-1])\n if n in [2, 4, 5, 7, 9]:\n ans = \'hon\'\n elif n in [0, 1, 6, 8]:\n ans = \'pon\'\n else:\n ans = \'bon\'\n print(ans)\n\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Accepted']
['s715614565', 's684663719']
[9108.0, 9112.0]
[22.0, 26.0]
[220, 225]
p02675
u045953894
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 = [2,4,5,7,9]\nb = [0,1,6,8]\n\nif n[-1] in a:\n print('hon')\nelif n[-1] in b:\n print('pon')\nelse:\n print('bon')\n", "n = int(input())\na = [2,4,5,7,9]\nb = [0,1,6,8]\n\nif n[-1] in a:\n print('hon')\nelif n[-1] in b:\n print('pon')\nelse:\n print('bon')", "n = input()\na = ['2','4','5','7','9']\nb = ['0','1','6','8']\n\nif n[-1] in a:\n print('hon')\nelif n[-1] in b:\n print('pon')\nelse:\n print('bon')\n "]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s169688629', 's918579308', 's155186131']
[9032.0, 9184.0, 8960.0]
[23.0, 24.0, 22.0]
[126, 130, 154]
p02675
u048800107
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\n\na = int(input())\nb = int(input())\nh = int(input())\nm = int(input())\nans = 0\n\nm_r = m/5\n\nh_r = h + m/60\n\nreg = (h_r - m_r)/12*360\nans = math.sqrt(a**2 + b**2 -2*a*b*math.cos(math.radians(reg)))\n\nprint(ans)', 's = str(input())\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\n\n\nif int(s[-1]) in hon:\n print("hon")\nelif int(s[-1]) in pon:\n print("pon")\nelse:\n print("bon")']
['Runtime Error', 'Accepted']
['s379886403', 's629107973']
[9168.0, 9180.0]
[23.0, 23.0]
[207, 155]
p02675
u049182844
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 本".
['digit_1 = int(input()) % 10\n\nif digit_1 == 2 or 4 or 5 or 7 or 9:\n print(\'hon\')\n\nelif digit_1 == 0 or 1 or 6 or 8:\n print(\'pon\')\n\nelif digit_1 == 3:\n print("bon")\n', 'hon = input()\n\ndigit_1 = hon % 10\n\nif digit_1 == 2 or 4 or 5 or 7 or 9:\n print(\'hon\')\n\nelif digit_1 == 0 or 1 or 6 or 8:\n print(\'pon\')\n\nelif digit_1 == 3:\n print("bon")\n', "N = int(input()[-1])\nif N in [2,4,5,7,9]:\n print('hon')\nelif N in [0,1,6,8]:\n print('pon')\nelif N in [3]:\n print('bon')\n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s390111799', 's982483682', 's193385447']
[9104.0, 8960.0, 9116.0]
[22.0, 24.0, 20.0]
[172, 178, 123]
p02675
u049191820
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: print('bon')\nelif a[-1]==0 or a[-1]==1 or a[-1]==6 or a[-1]==8: print('pon')\nelse: print('hon')\n", "a=input()\nif a[-1]==3: print('bon')\nelif: a[-1]==0 or a[-1]==1 or a[-1]==6 or a[-1]==8: print('pon')\nelse: print('hon')\n", "a=input()\nif a[-1]==3: print('bon')\nelif a[-1]==0 or a[-1]==1 or a[-1]==6 or a[-1]==8: print('pon')\nelse print('hon')", "a=input()\nif a[-1]=='3': print('bon')\nelif a[-1]=='0' or a[-1]=='1' or a[-1]=='6' or a[-1]=='8': print('pon')\nelse: print('hon')\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s143708526', 's415494231', 's427132558', 's683445173']
[9032.0, 8984.0, 8980.0, 9036.0]
[22.0, 22.0, 23.0, 21.0]
[119, 120, 117, 129]
p02675
u051684204
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=int(N[-1])\nprint(num)\nif num==3:\n print("bon")\nelif num==0 or num==1 or num==6 or num==8:\n print("pon")\nelse:\n print("hon")', 'N=input()\nnum=int(N[-1])\nif num==3:\n print("bon")\nelif num==0 or num==1 or num==6 or num==8:\n print("pon")\nelse:\n print("hon")']
['Wrong Answer', 'Accepted']
['s731335876', 's809915165']
[9176.0, 9164.0]
[20.0, 24.0]
[140, 129]
p02675
u054717609
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\na=[2,4,5,7,9]\nb=[0,1,6,8]\nc=[3]\nif n in a:\n print("hon")\n \nif n in b:\n print("bon")\nif n in c:\n print("pon")\n \n \n \n', 'n=int(input())\nn=n%10\na=[2,4,5,7,9]\nb=[0,1,6,8]\nc=[3]\nif n in a:\n print("hon")\n \nif n in b:\n print("pon")\nif n in c:\n print("bon")\n \n \n \n']
['Wrong Answer', 'Accepted']
['s554560466', 's051912645']
[9176.0, 9132.0]
[23.0, 24.0]
[171, 171]
p02675
u055981695
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()\nsig = str(a[-1])\n\nif (sig=="2" or sig=="4" or sig== "5" or sig =="7" or sig=="9"):\n print("hon")\nelse:\n if (sig=="3"):\n print("pon")\n else:\n print("bon")', 'a = input()\ntarget = a[-1]\n\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\n\nif int(target) in hon:\n print("hon")\nelse:\n if int(target) in pon:\n print("pon")\n else:\n print("bon")\n']
['Runtime Error', 'Accepted']
['s708354214', 's579317776']
[8888.0, 9128.0]
[25.0, 21.0]
[175, 198]
p02675
u057810841
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\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\n\nif n in hon:\n print("hon")\nelif n in pon:\n print("pon")\nelse:\n print("bon")', 'n = int(input())\nn %= 10\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\n\nif n in hon:\n print("hon")\nelif n in pon:\n print("pon")\nelse:\n print("bon")']
['Runtime Error', 'Accepted']
['s888621945', 's961405576']
[8936.0, 9120.0]
[27.0, 22.0]
[149, 154]
p02675
u057942294
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 == 0 or N % 4 == 0 or N % 5 == 0 or N % 7 == 0 or N % 9 == 0:\n print('hon')\nelif N % 3 == 0:\n print('bon')\nelse:\n print('pon')", "N = int(input())\n\nif N % 10 == 2 or N % 10 == 4 or N % 10 == 5 or N % 10 == 7 or N % 10 == 9:\n print('hon')\nelif N % 10 == 3:\n print('bon')\nelse:\n print('pon')"]
['Wrong Answer', 'Accepted']
['s981437443', 's278000782']
[9168.0, 9172.0]
[23.0, 23.0]
[162, 168]
p02675
u058061952
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())\nones = n % 10\n\nif n == 3:\n print('bon)\nelif n in [0,1,6,8]:\n print('pon')\nelse:\n print('hon')\n", "n = int(input())\nones = n % 10\n\nif ones == 3:\n print('bon')\nelif ones in [0,1,6,8]:\n print('pon')\nelse:\n print('hon')\n"]
['Runtime Error', 'Accepted']
['s528301779', 's442761979']
[9012.0, 9016.0]
[25.0, 22.0]
[120, 127]
p02675
u058880764
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')", "#A\nN = 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']
['s313863634', 's624662860']
[9040.0, 9104.0]
[20.0, 22.0]
[145, 158]
p02675
u060012100
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 = N % 10\nif(S == 0):\n print("pon")\nelse if(S == 1):\n print("pon")\nelse if(S == 6):\n print("pon")\nelse if(S == 8):\n print("pon")\nelse if(S == 3):\n print("bon")\nelse:\n print("hon")', "N = int(input())\nif((N%10) == 0||1||6||8):\n print('pon')\nelse if((N%10) == 3):\n print('bon')\nelse:\n print('hon')", 'N = input()\nS = N % 10\nif(S == 0):\n print("pon")\nelse if(S == 1):\n print("pon")\nelse if(S == 6):\n print("pon")\nelse if(S == 8):\n print("pon")\nelse if(S == 3):\n print("bon")\nelse:\n print("hon")', 'N = input()\nS = N % 10\nif(S == 0):\n print("pon")\nelif(S == 1):\n print("pon")\nelif(S == 6):\n print("pon")\nelif(S == 8):\n print("pon")\nelif(S == 3):\n print("bon")\nelse:\n print("hon")', "N = int(input())\nS = N % 10\nif(S == 0||1||6||8):\n print('pon')\nelse if(S == 3):\n print('bon')\nelse:\n print('hon')", 'n = int(input())\nS = n % 10\nif(S == 0):\n print("pon")\nelse if(S == 1):\n print("pon")\nelse if(S == 6):\n print("pon")\nelse if(S == 8):\n print("pon")\nelse if(S == 3):\n print("bon")\nelse:\n print("hon")', "N = int(input())\nif(N[:-1] == 0||1||6||8):\n print('pon')\nelse if(N[:-1] == 3):\n print('bon')\nelse:\n print('hon')", 'N = int(input())\nS = N % 10\nif(S == (0 or 1 or 8 or 6)):\n print("pon")\nelif(S == 3):\n print("bon")\nelse:\n print("hon")', "N = int(input())\nS = N % 10\nif(S == 0):\n print('pon')\nelse if(S == 1):\n print('pon')\nelse if(S == 6):\n print('pon')\nelse if(S == 8):\n print('pon')\nelse if(S == 3):\n print('bon')\nelse:\n print('hon')\n", "N = input()\nif(N == 3):\n print('bon')\nelse if(N == 0||1||6||8):\n print('pon')\nelse:\n print('hon')", 'N = int(input())\nS = N % 10\nif(S == (0 or 1 or 8 or 6)):\n print("pon")\nelif(S == 3):\n print("bon")\nelse:\n print("hon")', 'N = input()\nS = N%10\nif(S == 0):\n print("pon")\nelse if(S == 1):\n print("pon")\nelse if(S == 6):\n print("pon")\nelse if(S == 8):\n print("pon")\nelse if(S == 3):\n print("bon")\nelse:\n print("hon")', 'N = int(input())\nS = N % 10\nif(S == 0||1||8||6):\n print("pon")\nelif(S == 3):\n print("bon")\nelse:\n print("hon")', 'N = int(input())\nS = N % 10\nif(S == 0 or S == 1 or S == 8 or S == 6):\n print("pon")\nelif(S == 3):\n print("bon")\nelse:\n print("hon")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s047239766', 's049797317', 's112603138', 's140260894', 's182885056', 's216440491', 's450138833', 's609865060', 's683756065', 's714653723', 's755342984', 's955446582', 's982242671', 's523708127']
[8948.0, 9012.0, 8944.0, 9108.0, 8876.0, 9004.0, 8912.0, 9136.0, 9016.0, 8896.0, 9152.0, 9024.0, 8960.0, 9080.0]
[25.0, 21.0, 21.0, 24.0, 25.0, 23.0, 23.0, 21.0, 23.0, 21.0, 22.0, 23.0, 23.0, 23.0]
[203, 116, 198, 186, 116, 203, 115, 121, 204, 100, 121, 196, 113, 134]
p02675
u060116081
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%100\nb=a%10\nif b==3:\n print("bon")\nif b==2 || b==4 || b==5 || b==7 || b==9:\n print("hon")\nif b==0 || b==1 || b==6 || b==8:\n print ("pon")', 'n=int(input())\na=n%100\nb=a%10\nif b==3:\n print("bon")\nif b==2 or b==4 or b==5 or b==7 or b==9:\n print("hon")\nif b==0 or b==1 or b==6 or b==8:\n print ("pon")']
['Runtime Error', 'Accepted']
['s792505281', 's089185142']
[8960.0, 9076.0]
[21.0, 21.0]
[158, 158]
p02675
u060752882
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 = map(int, input().split())\nroom = [[] for i in range(n)]\nfor i in range(m):\n a,b = map(int, input().split())\n room[a-1].append(b-1)\n room[b-1].append(a-1)\nmark = [-1] * n\nmark[0] = 0\nq = []\nq.append(0)\n\nwhile len(q):\n now = q.pop(0)\n for i in room[now]:\n if mark[i] == -1:\n mark[i] = now\n q.append(i)\n\nprint("Yes")\nfor i in mark[1:]:\n print(i+1)\n', "n=int(input())\nm=n%10\nif m == 3:\n s = 'bon'\nelif m == 0 or m == 1 or m == 6 or m == 8:\n s = 'pon'\nelse:\n s = 'hon'\nprint(s)\n"]
['Runtime Error', 'Accepted']
['s545068708', 's119864408']
[9152.0, 9156.0]
[23.0, 20.0]
[398, 133]
p02675
u061520629
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,4,5,7,9):\n print('hon')\nelif N in (0,1,6,8):\n print('pon')\nelse:\n print('bon')\n", "N = input() % 10\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", "N = input()\n\nif N in (2,4,5,7,9):\n print('hon')\nelif N in (1,6,8):\n print('pon')\nelse:\n print('bon')\n", "N = input()\nnum = int(N)\n\nif num in (2,4,5,7,9):\n print('hon')\nelif num in (0,1,6,8):\n print('pon')\nelse:\n print('bon')\n", "N = input()\nn1 = N % 10\n\nif n1 in (2,4,5,7,9):\n print('hon')\nelif n1 in (0,1,6,8):\n print('pon')\nelse:\n print('bon')\n", "N = input()\nnum = int(N) % 10\n\nif num in (2,4,5,7,9):\n print('hon')\nelif num in (0,1,6,8):\n print('pon')\nelse:\n print('bon')\n"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s305303995', 's351693029', 's579115046', 's588949843', 's789641985', 's333361637']
[8996.0, 9108.0, 9024.0, 9088.0, 9112.0, 9000.0]
[25.0, 24.0, 23.0, 22.0, 23.0, 21.0]
[106, 111, 104, 123, 120, 128]
p02675
u062314674
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 = int(input())\n\nif 0 < a < 10;\n a = a \nelif 9 < a < 100;\n a = a % 10\nelse;\n a = a % 100\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\n ', 'N = int(input())\nn = N % 10\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', 'N = int(input())\nn = N % 10\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")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s315755437', 's910814215', 's499718948']
[8884.0, 8872.0, 9172.0]
[21.0, 25.0, 22.0]
[199, 129, 129]
p02675
u062754605
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()\nif int(len(S)) <= K:\n print(S)\nelse:\n print(S[0:K]+'...')\n", "N = input()\nM = str(N)\nK = len(M)\nif N[K-1] == '2' or N[K-1] == '4' or N[K-1] == '5' or N[K-1] == '7' or N[K-1] == '9':\n print('hon')\nelif N[K-1] == '0' or N[K-1] == '1' or N[K-1] == '6' or N[K-1] == '8':\n print('pon')\nelse:\n print('bon')\n"]
['Runtime Error', 'Accepted']
['s914377511', 's428401545']
[9096.0, 9132.0]
[19.0, 20.0]
[93, 248]
p02675
u062967213
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\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\n\nfor i in range(5):\n if(N[-1] == hon[i]):\n print("hon")\n\nfor i in range(4):\n if(N[-1] == pon[i]):\n print("pon")\n\nif(N[-1] == bon[0]):\n print("bon")\n\n', 'N=input()\n\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\n\nprint(N[-1])\n\nfor i in range(5):\n if(N[-1] == hon[i]):\n print("hon")\n\nfor i in range(4):\n if(N[-1] == pon[i]):\n print("pon")\n\nif(N[-1] == bon[0]):\n print("bon")\n\n', 'N=input()\n\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nbon = [3]\n\nfor i in range(5):\n if(N[-1] == str(hon[i])):\n print("hon")\n\nfor i in range(4):\n if(N[-1] == str(pon[i])):\n print("pon")\n\nif(N[-1] == str(bon[0])):\n print("bon")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s271156181', 's720242753', 's499598762']
[9076.0, 9028.0, 9028.0]
[20.0, 23.0, 23.0]
[213, 227, 227]
p02675
u068862829
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 本".
['# -*- coding: utf-8 -*-\n\na = int(input())\n\nb = a - (a%10)*10\n\nif b == 2 or b == 4 or b == 5 or b == 7 or b == 9:\n out = \'hon\'\nelif b == 0 or b == 1 or b == 6 or b == 8:\n out = \'pon\'\nelif b == 3:\n out = \'bon\'\n\nprint("{}".format(out))', '# -*- coding: utf-8 -*-\n\na = int(input())\n\nb = a%10\nprint(b)\n\nif b == 2 or b == 4 or b == 5 or b == 7 or b == 9:\n out = \'hon\'\nelif b == 0 or b == 1 or b == 6 or b == 8:\n out = \'pon\'\nelif b == 3:\n out = \'bon\'\n\nprint("{}".format(out))', '# -*- coding: utf-8 -*-\n\na = int(input())\n\nb = a%10\n\nif b == 2 or b == 4 or b == 5 or b == 7 or b == 9:\n out = \'hon\'\nelif b == 0 or b == 1 or b == 6 or b == 8:\n out = \'pon\'\nelif b == 3:\n out = \'bon\'\n\nprint("{}".format(out))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s734547471', 's917202097', 's127131679']
[9120.0, 9128.0, 9168.0]
[23.0, 21.0, 22.0]
[306, 306, 297]
p02675
u069273180
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 =[]\nN = input()\nN = int(N[-1])\n\nif N == 3:\n print(str(N) + "bon")\nelif N == 0 or N == 1 or N == 6 or N == 8:\n print(str(N) + "pon")\nelse:\n print(str(N) + "hon")', 'N =[]\nN = input()\nN = int(N[-1])\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")']
['Wrong Answer', 'Accepted']
['s661925450', 's686982360']
[9212.0, 9172.0]
[22.0, 22.0]
[165, 138]
p02675
u071563580
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=list(map(int, input().split()))\n\n\nth_a = 360/12 * h + 360/12*m/60\nth_b = 360*m/60\nprint(th_a)\nprint(th_b)\nab_th = abs(th_a - th_b)\nif ab_th > 180:\n ab_th = 360 - ab_th\n\nprint(math.sqrt(a*a + b*b -2*a*b*math.cos(math.radians(ab_th))))', 'import math\na,b,h,m=list(map(int, input().split()))\n\n\nth_a = 360/12 * h + 360/12*m/60\nth_b = 360*m/60\nprint(th_a)\nprint(th_b)\nab_th = abs(th_a - th_b)\nif ab_th >= 180:\n ab_th = 360 - ab_th\n\nprint(math.sqrt(a*a + b*b -2*a*b*math.cos(math.radians(ab_th))))', 'x = input()\nl = [2,4,5,7,9]\ni = [0,1,6,8]\nif x[-1] in l:\n print("hon")\nelif x[-1] in i:\n print("pon")\nelse:\n print("bon")', 'x = input()\nl = [2,4,5,7,9]\ni = [0,1,6,8]\nif int(x[-1]) in l:\n print("hon")\nelif int(x[-1]) in i:\n print("pon")\nelif x[-1] == "3":\n print("bon")']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s480142525', 's583632908', 's835451007', 's527003372']
[9196.0, 9200.0, 9112.0, 9180.0]
[23.0, 25.0, 24.0, 21.0]
[256, 257, 130, 153]
p02675
u071829175
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 == 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', 'N = int(input())\nn = N%10\nif n == 2 or 4 0r 5 0r 7 or 9:\n print("hon")\nif n == 0 or 1 or 6 or 8:\n print("pon")\nif n == 3:\n print("bon")', 'N = int(input())\nn = N%10\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 == 3:\n print("bon")\n', 'N = int(input())\nn = N%10\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']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s184709672', 's447495108', 's627913080', 's795742165']
[9160.0, 9016.0, 9024.0, 9104.0]
[21.0, 22.0, 23.0, 23.0]
[137, 138, 143, 170]
p02675
u071916806
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()\nl=len(s)\nif l<=k:\n print(s)\nelse:\n p=s[1:k]\n q='...'\n r=p+q\n print(r)", "n=int(input())\na=n%10\nif a==3:\n print('bon')\nelif n==0:\n print('pon')\nelif n==1:\n print('pon')\nelif n==6:\n print('pon')\nelif n==8:\n print('pon')\nelse:\n print('hon')", "n=int(input())\na=n%10\nif a==3:\n print('bon')\nelif a==0:\n print('pon')\nelif a==1:\n print('pon')\nelif a==6:\n print('pon')\nelif a==8:\n print('pon')\nelse:\n print('hon')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s041949609', 's225095063', 's839620161']
[9168.0, 9168.0, 9176.0]
[21.0, 21.0, 23.0]
[99, 170, 170]
p02675
u074294821
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 本".
["l = list(map(int, input()))\na = [2, 4, 5, 7, 9]\nb = [0, 1, 6, 8]\nc = [3]\nprint(l[-1])\nif l[-1] in a:\n print('hon')\nelif l[-1] in b:\n print('pon')\nelse:\n print('bon')\n", "l = list(map(int, input()))\na = [2, 4, 5, 7, 9]\nb = [0, 1, 6, 8]\nc = [3]\nif l[-1] in a:\n print('hon')\nelif l[-1] in b:\n print('pon')\nelse:\n print('bon')\n"]
['Wrong Answer', 'Accepted']
['s847116804', 's370944194']
[9104.0, 9100.0]
[27.0, 28.0]
[175, 162]
p02675
u074687136
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] 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 = list(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")']
['Wrong Answer', 'Accepted']
['s768128653', 's372835837']
[9128.0, 9108.0]
[21.0, 22.0]
[119, 144]
p02675
u076018778
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())\ns=(n[-1])\n\nif s==3:\n\tprint('bon')\nelif s==0 or s==1 or s==6 or s==8:\n\tprint('pon')\nelse:\n \tprint('hon')", "n = str(input())\ns=(n[-1])\n\nif s=='3':\n\tprint('bon')\nelif s=='0' or s=='1' or s=='6' or s=='8':\n\tprint('pon')\nelse:\n \tprint('hon')"]
['Wrong Answer', 'Accepted']
['s355817537', 's395666131']
[9036.0, 9104.0]
[21.0, 21.0]
[121, 131]
p02675
u076065707
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 本".
['nums = list(map(int,input().split()))\t\nif nums[-1]==3:\n print("bon")\nelif nums[-1]==0 or nums[-1]==1 or nums[-1]==6 or nums[-1]== :\n print("pon")\nelse :\n print("hon")\n', 's=list(input())\n\nnum=int(s[-1])\nif num==3:\n print("bon")\nelif num==0 or num==1 or num==6 or num==8:\n print("pon")\nelse :\n print("hon")\n']
['Runtime Error', 'Accepted']
['s546548281', 's900542324']
[8960.0, 9160.0]
[23.0, 23.0]
[170, 138]
p02675
u077219258
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 in [2, 4, 5, 7, 9]:\n print("hon")\n elif n%10 in [0, 1, 6, 8]:\n print("pon")\n else:\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")\n \n']
['Runtime Error', 'Accepted']
['s197860144', 's976070153']
[8988.0, 9036.0]
[24.0, 21.0]
[124, 134]
p02675
u078527650
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= str(input())\nb = a[-1]\nprint(b)\nb = int(b)\nif b == 3:\n print("bon")\nelif b == 0 :\n print("pon")\nelif b == 1 :\n print("pon")\nelif b == 6 :\n print("pon")\nelif b == 8 :\n print("pon")\nelse:\n print("hon")\n', 'a= str(input())\nb = a[-1]\nif b == 3:\n print("bon")\nelif b == 0 or b==1 or b==6 or b ==8:\n print("pon")\nelse:\n print("hon")\n', 'a= str(input())\nb = a[-1]\n\nb = int(b)\nif b == 3:\n print("bon")\nelif b == 0 :\n print("pon")\nelif b == 1 :\n print("pon")\nelif b == 6 :\n print("pon")\nelif b == 8 :\n print("pon")\nelse:\n print("hon")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s026834991', 's307622257', 's294212865']
[9176.0, 9096.0, 9176.0]
[24.0, 23.0, 22.0]
[221, 132, 213]
p02675
u079827881
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\ndeg_h = 360 / 12\ndeg_m = 360 / 60\n\nH = h * deg_h + m * deg_m\nM = m * deg_m\ndeg = abs(H - M)\n\nif deg > 180:\n deg = 360 - deg\n\nrad = (deg*math.pi) / 180\nc = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(rad))\nprint(c)\n', 'import math\n\na, b, h, m = map(int, input().split())\n\ndeg_h = 360 / 12\ndeg_m = 360 / 60\n\nH = h * deg_h + m * (deg_h/60)\nM = m * deg_m\ndeg = abs(H - M)\n\nif deg > 180:\n deg = 360 - deg\n\nrad = (deg/180) * math.pi\nc = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(rad))\nprint(c)\n', 'import math\n\na, b, h, m = map(int, input().split())\n\ndeg_h = 360 / 12\ndeg_m = 360 / 60\n\nH = h * deg_h + m * deg_m\nM = m * deg_m\ndeg = abs(H - M)\n\nif deg > 180:\n deg = 360 - deg\n\nrad = (deg/180) * math.pi\nc = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(rad))\nprint(c)\n', 'import numpy as np\n\na, b, h, m = map(int, input().split())\n\nH = h * 30 + m*0.5\nM = m * 6\n\nif(H > M):\n deg = H - M\n rad = (deg*np.pi) / 180\n c = np.sqrt(a**2 + b**2 - 2*a*b*np.cos(rad))\n print(c)\nelif(H < M):\n deg = M - H\n rad = (deg*np.pi) / 180\n c = np.sqrt(a**2 + b**2 - 2*a*b*np.cos(rad))\n print(c)\nelse:\n print(b-a)\n', 'import math\ndef resolve():\n A, B, H, M = map(int, input().split())\n \n deg_H = 360/12\n \n deg_M = 360/60\n\n hr = deg_H*H + (deg_H/60)*M\n mr = deg_M*M\n deg = abs(hr-mr)\n if deg>180:\n deg = 360- deg\n\n \n red = (deg/180)*math.pi\n ans = math.sqrt(A*A + B*B - 2*A*B*math.cos(red))\n print(ans)\n\nif __name__ == "__main__":\n resolve()\n', 'import numpy as np\n\na, b, h, m = map(int, input().split())\n\nH = h * 30 + m*0.5\nM = m * 6\n\nif(H > M):\n deg = H - M\n rad = (deg*np.pi) / 180\n c = np.sqrt(a**2 + b**2 - 2*a*b*np.cos(rad))\n print(c)\nelif(H < M):\n deg = M - H\n rad = (deg*np.pi) / 180\n c = np.sqrt(a**2 + b**2 - 2*a*b*np.cos(rad))\n print(c)\nelse:\n print(b-a)\n', "n = input()\n\nif( n[-1]=='2' or n[-1]=='4' or n[-1]=='5' or n[-1]=='7' or n[-1]=='9'):\n print('hon')\nelse if( n[-1]=='0' or n[-1]=='6' or n[-1]=='1' or n[-1]=='8' ):\n print('pon')\nelse:\n print('bon')", "n = input()\n\nif( n[-1]=='0' or n[-1]=='6' or n[-1]=='1' or n[-1]=='8' ):\n print('pon')\nelse if( n[-1]=='3' ):\n print('bon')\nelse:\n print('hon')\n", "n = input()\n\nif(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):\n print('pon')\nelif(n[-1] == '3'):\n print('bon')\nelse:\n print('hon')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s013629360', 's024333091', 's208368299', 's212852646', 's385874447', 's489283173', 's549728546', 's729554260', 's387261117']
[9200.0, 9028.0, 9188.0, 27092.0, 9044.0, 27148.0, 9036.0, 8936.0, 8980.0]
[23.0, 24.0, 22.0, 106.0, 20.0, 106.0, 21.0, 26.0, 24.0]
[265, 270, 265, 347, 476, 347, 208, 153, 156]
p02675
u080685822
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 本".
['enpitu = input("N ==:")\nhonsuu = enpitu // 10\nif honsuu == 3:\n\tprint("bon")\nelif honsuu == 0, 1, 6, 8:\n\tprint("pon")\nelse:\n\tprint("hon")\n', 'enpitu = input("N ==:")\nif enpitu <= 999:\n\thonsuu = enpitu // 10\n\tif honsuu == 3:\n\t\tprint("bon")\n\telif honsuu == 0, 1, 6, 8:\n\t\tprint("pon")\n\telse:\n\t\tprint("hon")\nelse:\n break\n', 'enpitu = input("N ==")\nhonsuu = enpitu // 10\nif enpitu == 3:\n\tprint("bon")\nelif enpitu == 0, 1, 6, 8:\n\tprint("pon")\nelse:\n\tprint("hon")', 'enpitu = input("":)\nhonsuu = enpitu // 10\nif enpitu == 3:\n\tprint("bon")\nelif enpitu == 0, 1, 6, 8:\n\tprint("pon")\nelse:\n\tprint("hon")\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")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s069145218', 's127874027', 's737749992', 's777725307', 's808160787']
[8956.0, 8824.0, 8824.0, 9000.0, 9072.0]
[25.0, 23.0, 24.0, 24.0, 20.0]
[137, 178, 135, 133, 113]
p02675
u081365646
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_1 = n[-1]\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()\nn_1 = int(n[-1])\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']
['s938008257', 's063326584']
[9100.0, 9148.0]
[21.0, 24.0]
[144, 149]
p02675
u081688405
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()[-1])\n\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()[-1])\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')"]
['Wrong Answer', 'Accepted']
['s110669297', 's399854616']
[9160.0, 9036.0]
[22.0, 23.0]
[126, 127]
p02675
u085329544
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())\nlhon = [2,4,5,7,9]\nlpon = [0,1,6,8]\n\nif n%10 == lhon:\n print('hon')\n\nelif n%10 == lpon:\n print('pon')\n\nelse:\n print('bon')", "n = int(input())\nl_hon = [2,4,5,7,9]\nl_pon = [0,1,6,8]\n\nif n%10 in l_hon:\n print('hon')\nelif n%10 in l_pon:\n print('pon')\nelse:\n print('bon')"]
['Wrong Answer', 'Accepted']
['s006290200', 's918648903']
[9156.0, 9108.0]
[22.0, 20.0]
[142, 144]
p02675
u085634861
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 in [2,4,5,7,9]:\n print('hon')\nelif n in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')", "n=int(input())\nn=n%10\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"]
['Wrong Answer', 'Accepted']
['s977135935', 's430536025']
[9164.0, 9064.0]
[20.0, 22.0]
[107, 115]
p02675
u087118202
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(n[-1])\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 a==8:\n print('pon')\nelse:\n print('bon')", "n=input()\na=int(n[-1])\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')"]
['Runtime Error', 'Accepted']
['s186267279', 's470098482']
[8948.0, 9152.0]
[23.0, 28.0]
[147, 150]
p02675
u088475928
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_mozi="N"\nfor i in range N_mozi:\n if i<len(N_mozi)+1:\n continue\n else:\n end_N=i\nif end_N==2 or end_N==4 or end_N==5 or end_N==7 or end_N==9:\n print("hon")\nelif end_N==3:\n print("bon")\nelse:\n print("pon")', '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']
['s243943931', 's418858289']
[9016.0, 9168.0]
[23.0, 22.0]
[230, 124]
p02675
u090361088
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 = list(input())\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nif int(N[2]) in hon:\n print("hon")\nelif int(N[2]) in pon:\n print("pon")\nelse:\n print("bon")', 'N = list(input())\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nif int(N[2]) in hon:\n print("hon")\nelif int(N[2]) in pon:\n print("pon")\nelse:\n print("bon")', 'N = list(input())\nhon = [2,4,5,7,9]\npon = [0,1,6,8]\nif int(N[-1]) in hon:\n print("hon")\nelif int(N[-1]) in pon:\n print("pon")\nelse:\n print("bon")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s156882952', 's446310321', 's295278493']
[9048.0, 9100.0, 9112.0]
[25.0, 30.0, 25.0]
[152, 152, 154]
p02675
u090649502
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()\nif len(s)<=k:\n print(s)\nelse:\n print(s[:k]+"...")', 'n=int(input())\nif n==3:\n print("bon")\nelif n<=1 or n==6 or n==8:\n print("pon")\nelse:\n print("hon")', 'n=int(input())\nn1=n%10\nif n1==3:\n print("bon")\nelif n1<=1 or n1==6 or n1==8:\n print("pon")\nelse:\n print("hon")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s471089312', 's667963653', 's545612611']
[9164.0, 9164.0, 9164.0]
[24.0, 21.0, 25.0]
[80, 107, 119]
p02675
u093861603
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 本".
['data=[["hon",2,4,5,9,7],["pon",0,1,6,8],["bon",3]]\nN=int(input())%10\nfor i in range(3):\n if N in data:\n print(data[i][0])', 'data=[["hon",2,4,5,9,7],["pon",0,1,6,8],["bon",3]]\nN=int(input())%10\nfor i in range(3):\n if N in data[i]:\n print(data[i][0])']
['Wrong Answer', 'Accepted']
['s680537887', 's986150597']
[9184.0, 9156.0]
[21.0, 20.0]
[131, 134]
p02675
u095192632
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[-1]==3:\n print('bon')\nelif N[-1] in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('hon')", "N = str(input())\n\nif int(N[-1])==3:\n print('bon')\nelif int(N[-1]) in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('hon')\n"]
['Runtime Error', 'Accepted']
['s385589972', 's027389381']
[9140.0, 9028.0]
[26.0, 26.0]
[109, 120]
p02675
u095403885
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()\nif len(S) >= K:\n print(S[:K], '...', sep='')\nelse:\n print(S)", "hon = [2, 4, 5, 7, 9]\npon = [0, 1, 6, 8]\nbon = 3\nN = int(input())\nif N.pop() in hon:\n print('hon')\nelif N.pop() in pon:\n print('pon')\nelse:\n print('bon')", "hon = [2, 4, 5, 7, 9]\npon = [0, 1, 6, 8]\nbon = 3\nN = input().split()\nr = int(N.pop())\nif r in hon:\n print('hon')\nelif r in pon:\n print('pon')\nelse:\n print('bon')", 'from math import sin, radians, cos, sqrt\nlst = [int(i) for i in input().split()]\nA, B, H, M = tuple(lst)\nangle = M * 6 - (H * 30 + M * 0.5)\nif abs(angle) > 180:\n angle = 360 - abs(angle)\nelif abs(angle) == 180:\n X = A + B\n print(X)\nelif abs(angle) == 0:\n print(0)\nelse:\n angle = abs(angle)\n area = A * B * sin(radians(angle)) / 2\n co = sqrt(1 - sin(radians(angle)) ** 2)\n X = sqrt(A**2 + B**2 - 2*A*B*co)\n print(X)', "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')"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s230086008', 's490264088', 's517163606', 's852930747', 's203514048']
[9172.0, 9116.0, 9176.0, 9212.0, 9004.0]
[23.0, 19.0, 20.0, 20.0, 21.0]
[91, 156, 164, 423, 143]
p02675
u097409023
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 = list(map(int,input().split()))\n\n\nx = list(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')", "N = list(map(int,input().split()))\n\nx = list(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')", "N = list(map(int,input().split()))\n\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')", "N = 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')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s123146300', 's572769287', 's697389200', 's954282660']
[9184.0, 9056.0, 9176.0, 9076.0]
[22.0, 23.0, 20.0, 22.0]
[169, 168, 157, 143]
p02675
u098436028
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]\nbon=[0,1,6,8]\n\nif( N%10 in hon ):\n print("hon")\n\nif( N%10 in bon ):\n print("bon")\n\nif( N%10 == 3 ):\n print("pon")\n \n', 'N = int(input())\nhon=[2,4,5,7,9]\nbon=[0,1,6,8]\n\nif( N%10 in hon ):\n print("hon")\n\nif( N%10 in bon ):\n print("pon")\n\nif( N%10 == 3 ):\n print("bon")\n ']
['Wrong Answer', 'Accepted']
['s408364735', 's260830735']
[9168.0, 9168.0]
[24.0, 21.0]
[152, 151]
p02675
u102004737
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())\nm=n%10\nprint(m)\nif m==3:\n print('bon')\nelif m==0 or m==1 or m==6 or m==8:\n print('pon')\nelse:\n print('hon')", "n=int(input())\nm=n%10\nif m==3:\n print('bon')\nelif m==0 or m==1 or m==6 or m==8:\n print('pon')\nelse:\n print('hon')"]
['Wrong Answer', 'Accepted']
['s183644646', 's036781584']
[9104.0, 9164.0]
[26.0, 27.0]
[125, 116]
p02675
u104005543
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 %= 10\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')2", "n = int(input())\nn %= 10\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', 'Accepted']
['s650299560', 's781703867']
[9040.0, 9112.0]
[23.0, 21.0]
[176, 175]
p02675
u106095117
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())\ndeg=abs(h*30+m*0.5)-(m*6)\nif deg>=180:\n deg=360-deg\nc=math.sqrt(a**2+b**2-2*a*b*math.cos(math.pi*deg/180))\nprint(c)', 'import math\na, b, h, m = map(int,input().split())\n\na_s = (30 * h) % 360 + 0.5 * m\nb_s = (6*m)\n\ns = max(a_s,b_s) - min(a_s,b_s)\nans = math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(s)))\nprint(ans)', "import math\nA, B, H, M = map(int, input().split())\n\ndgree_h = H / 12. * 360.\ndgree_m = M / 60. * 360.\n\nang = math.pi / 180. * abs(dgree_h - dgree_m)\nprint(ang)\n\n\na = '{:.21f}'.format(math.sqrt(A ** 2. + B ** 2. - 2. * A * B * math.cos(ang)))\nprint((a))", "import math\nA, B, H, M = map(int, input().split())\n\nA_x = A * math.cos(2 * math.pi * (H + M / 60.) / 12.)\nA_y = A * math.sin(2 * math.pi * (H + M / 60.) / 12.)\nB_x = B * math.cos(2 * math.pi * M / 60.)\nB_y = B * math.sin(2 * math.pi * M / 60.)\n\nprint('{:.15f}'.format(math.sqrt((A_x - B_x) ** 2 + (A_y - B_y) ** 2)))", "\nA, B, H, M = list(map(int, input().split()))\n\nimport math\nA_x = A * math.cos(2 * math.pi * (H + M / 60.) / 12.)\nA_y = A * math.sin(2 * math.pi * (H + M / 60.) / 12.)\nB_x = B * math.cos(2 * math.pi * M / 60.)\nB_y = B * math.sin(2 * math.pi * M / 60.)\n\nprint('{:.15f}'.format(math.sqrt((A_x - B_x) ** 2 + (A_y - B_y) ** 2)))", "N = int(input())\nn = N % 10\n\nif n == 3:\n print('bon')\nelif n in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('hon')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s124627655', 's179350810', 's448606972', 's806026948', 's969323478', 's270619737']
[9176.0, 9144.0, 9012.0, 9080.0, 9056.0, 9104.0]
[24.0, 22.0, 23.0, 23.0, 22.0, 22.0]
[161, 196, 252, 317, 323, 121]
p02675
u107161006
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())\np=n%10\nif(p==2||p==4||p==5||p==7||p==9):\n print("hon")\nelif(p==3):\n print("pon")\nelse:\n print("bon")\n', 'n=int(input())\np=n%10\nif(p==2 or p==4 or p==5 or p==7 or p==9):\n print("hon")\nelif(p==3):\n print("pon")\nelse:\n print("bon")', 'n=int(input())\np=n%10\nif(p==2 or p==4 or p==5 or p==7 or p==9):\n print("hon")\nelif(p==3):\n print("bon")\nelse:\n print("pon")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s122811950', 's281970194', 's045312792']
[9020.0, 9168.0, 9180.0]
[23.0, 23.0, 23.0]
[119, 126, 126]
p02675
u108136854
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 本".
["imporet re\n\nN = input()\n\nif re.match(r'[2,4,5,7,9]', N[-1]):\n\tprint('hon')\nelif re.match(r'[0,1,6,8]', N[-1]):\n\tprint('pon')\nelse:\n\tprint('bon')", "import re\n\nN = input()\n\nif re.match(r'[2,4,5,7,9]', N[-1]):\n\tprint('hon')\nelif re.match(r'[0,1,6,8]', N[-1]):\n\tprint('pon')\nelse:\n\tprint('bon')"]
['Runtime Error', 'Accepted']
['s259390322', 's446432450']
[8944.0, 9872.0]
[22.0, 27.0]
[144, 143]
p02675
u109180262
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 本".
['#!/usr/bin/env python\nn = input()\nprint(n[-1])\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', '#!/usr/bin/env python\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")\n']
['Wrong Answer', 'Accepted']
['s004724590', 's878155674']
[9044.0, 9096.0]
[23.0, 21.0]
[189, 177]
p02675
u111082563
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\nans = 'hon'\nif n == 3:\n ans = 'bon'\nelif n == 0 or n == 1 or n == 6 or n == 8:\n ans = 'pon'\n\nprint(ans)\n", "n = str(input())\nn = int(n[-1])\nans = 'hon'\nif n == 3:\n ans = 'bon'\nelif n == 0 or n == 1 or n == 6 or n == 8:\n ans = 'pon'\n\nprint(ans)\n"]
['Wrong Answer', 'Accepted']
['s616328263', 's573774735']
[9116.0, 9008.0]
[21.0, 23.0]
[128, 142]
p02675
u113107956
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\nimport sys\nimport numpy as np\na,b,h,m=map(int,input().split())\nh=h*30+m*0.5\nm=m*6\nma=max(h,m)\nmi=min(h,m)\nkakudo=abs(ma-mi)\nif kakudo>180:\n kakudo=360-kakudo\nelif kakudo == 0:\n print(abs(a-b))\n exit()\nelif kakudo==180:\n print(a+b)\n exit()\nc=math.cos(math.radians(kakudo))\n#print(c)\nans=math.pow(a,2)+math.pow(b,2)-2*a*b*c\nans=math.sqrt(ans)\nprint(ans)', 'import math\na,b,h,m=map(int,input().split())\nh=h*30+m*0.5\nm=m*6\nma=max(h,m)\nmi=min(h,m)\nkakudo=abs(ma-mi)\nif kakudo>180:\n kakudo-=180\nelif kakudo ==0:\n print(abs(a-b))\n exit()\nelif kakudo==180:\n print(a+b)\n exit()\n#print(kakudo)\nc=math.cos(math.radians(kakudo))\nans=a**2+b**2-2*a*b*c\nans=ans**0.5\nprint(ans)', "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']
['s434415274', 's486230957', 's994166128']
[27168.0, 9212.0, 9104.0]
[116.0, 21.0, 26.0]
[378, 322, 140]
p02675
u113255362
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())\nnum = N % 10\n\nif num == 3:\n print("bon")\nelif num == 0 or num == 1 or num == 6 or num == 8:\n print("pon")\nelse\n print("hon")', 'N= int(input())\nnum = N % 10\n\nif num == 3:\n print("bon")\nelif num == 0 or num == 1 or num == 6 or num == 8:\n print("pon")\nelse:\n print("hon")']
['Runtime Error', 'Accepted']
['s727557604', 's980319400']
[9024.0, 9168.0]
[19.0, 19.0]
[142, 144]
p02675
u113335323
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 本".
["h = [2,4,5,7,9]\np = [0,1,6,8]\nb = [3]\n\nn = input()\n\nn = n % 10\n\nif n in h:\n print 'hon'\nelif n in p:\n print 'pon'\nelif n in b:\n print 'bon'", "h = [2,4,5,7,9]\np = [0,1,6,8]\nb = [3]\n\nn = int(input())\n\nn = n % 10\n\nif n in h:\n print('hon')\nelif n in p:\n print('pon')\nelif n in b:\n print('bon')"]
['Runtime Error', 'Accepted']
['s428376083', 's449051851']
[8876.0, 9180.0]
[24.0, 21.0]
[142, 150]
p02675
u113375133
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\nimport sys\nsys.setrecursionlimit(2000000)\nN, M = map(int, input().split())\ngraph = [[] for j in range(M)]\nq = deque([])\ndepth_array = [-1 for i in range(N)]\n\nfor i in range(M):\n a, b = map(int, input().split())\n graph[a-1].append(b-1)\n graph[b-1].append(a-1)\n\ndef bfs(graph, q, depth_array):\n \n if len(q) == 0:\n return depth_array\n\n cur_room = q.popleft()\n\n \n for r in graph[cur_room]:\n if depth_array[r] == -1: \n q.append(r)\n depth_array[r] = depth_array[cur_room] + 1\n\n return bfs(graph, q, depth_array)\n \n# init\nq.append(0)\ndepth_array[0] = 0\ndepth_array = bfs(graph, q, depth_array)\n\nmark_array = [-1 for i in range(N)]\n#print(depth_array)\n\nfor room, depth in enumerate(depth_array):\n for node in graph[room]:\n if depth_array[node] + 1 == depth_array[room]:\n mark_array[room] = node\nif -1 in mark_array[1:]:\n print("No")\nelse:\n print("Yes")\n for m in mark_array[1:]:\n print(m+1)\n', 'from collections import deque\nimport sys\nsys.setrecursionlimit(2000000)\nN, M = map(int, input().split())\ngraph = [[] for j in range(M)]\nq = deque([])\ndepth_array = [-1 for i in range(N)]\n\nfor i in range(M):\n a, b = map(int, input().split())\n graph[a-1].append(b-1)\n graph[b-1].append(a-1)\n\ndef bfs(graph, q, depth_array):\n \n if len(q) == 0:\n return depth_array\n\n cur_room = q.popleft()\n\n \n for r in graph[cur_room]:\n if depth_array[r] == -1: \n q.append(r)\n depth_array[r] = depth_array[cur_room] + 1\n\n return bfs(graph, q, depth_array)\n \n# init\nq.append(0)\ndepth_array[0] = 0\ndepth_array = bfs(graph, q, depth_array)\n\nmark_array = [-1 for i in range(N)]\n#print(depth_array)\n\n\n', 'from collections import deque\nimport sys\nsys.setrecursionlimit(2000)\nN, M = map(int, input().split())\ngraph = [[] for j in range(M)]\nq = deque([])\ndepth_array = [-1 for i in range(N)]\n\nfor i in range(M):\n a, b = map(int, input().split())\n graph[a-1].append(b-1)\n graph[b-1].append(a-1)\n\ndef bfs(graph, q, depth_array):\n \n if len(q) == 0:\n return depth_array\n\n cur_room = q.popleft()\n\n \n for r in graph[cur_room]:\n if depth_array[r] == -1: \n q.append(r)\n depth_array[r] = depth_array[cur_room] + 1\n\n return bfs(graph, q, depth_array)\n \n# init\nq.append(0)\ndepth_array[0] = 0\ndepth_array = bfs(graph, q, depth_array)\n\nmark_array = [-1 for i in range(N)]\n#print(depth_array)\n\nfor room, depth in enumerate(depth_array):\n for node in graph[room]:\n if depth_array[node] + 1 == depth_array[room]:\n mark_array[room] = node\nif -1 in mark_array[1:]:\n print("No")\nelse:\n print("Yes")\n for m in mark_array[1:]:\n print(m+1)', 's = input()\nt = s[-1]\nif t == \'2\' or t == \'4\' or t == \'5\' or t == \'7\' or t == \'9\':\n print("hon")\nif t == \'0\' or t == \'1\' or t== \'6\' or t == \'8\':\n print("pon")\nif t == \'3\':\n print("bon")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s323792361', 's486074140', 's695164174', 's453730414']
[9476.0, 9488.0, 9484.0, 9072.0]
[23.0, 26.0, 25.0, 21.0]
[1066, 792, 1062, 195]
p02675
u114233208
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())\nones = n % 10\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')", 'K = int(input())\nS = input()\nif len(S) <= K:\n print(S)\nelse:\n print(S[:K]+"...")', "n = int(input())\nones = n % 10\nif ones in [2,4,5,7,9]:\n print('hon')\nelif ones in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s813260577', 's826150445', 's155005530']
[9048.0, 9192.0, 9112.0]
[20.0, 24.0, 22.0]
[123, 82, 129]
p02675
u116484168
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 = int(input())\n\nwhile a > 10:\n a = a % 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', 'a = int(input())\n\nwhile a > 10:\n a = a % 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']
['Runtime Error', 'Accepted']
['s668472319', 's481990151']
[8904.0, 9164.0]
[22.0, 35.0]
[200, 201]
p02675
u116722061
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)\nprint(s[-1])\nif s[-1] == "3":\n print ("bon")\nelif s[-1] == "0" or "1" or "6" or "8":\n print ("pon")\nelse:\n print ("hon")', 'N = int(input())\ns = str (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']
['s147945612', 's406144279']
[9092.0, 9072.0]
[21.0, 20.0]
[152, 169]
p02675
u117848972
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\nif n[:-1] == [2, 4, 5, 7, 9]:\n print('hon')\nelif n[:-1] == [0 ,1, 6, 8]:\n print('pon')\nelse:\n print('bon')", "n = str(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')", "n = str(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')", "n = str(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')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s208547386', 's278475871', 's830172415', 's136741968']
[8984.0, 9116.0, 9056.0, 9056.0]
[26.0, 21.0, 21.0, 23.0]
[127, 149, 153, 158]
p02675
u118772524
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 = int(input())[-1]\n\nif x == [2,4,5,7,9]:\n print("hon")\n\nelif x == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")', 'x = input()\n\nif x{-1} == [2,4,5,7,9]:\n print("hon")\n\nelif x{-1} == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")\n', 'x = int()[-1]\n\nif x == [2,4,5,7,9]:\n print("hon")\n\nelif x == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")\n', 'x = input()[-1]\nif x == [2,4,5,7,9]:\n print("hon")\n\nelif x == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")\n', '\nx = input()[-1]\nif x == [2,4,5,7,9]:\n print("hon")\n\nelif x == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")\n', 'x = input()\n\nif x == [2,4,5,7,9]:\n print("hon")\n\nelif x == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")\n', 'x = input()[-1]\nif x == [2,4,5,7,9]:\n print("hon")\n\nelif x == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")\n ', 'x = int(input())[-1]\nif x == [2,4,5,7,9]:\n print("hon")\n\nelif x == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")', 'x = int(input()[-1])\n\nif x == [2,4,5,7,9]:\n print("hon")\n\nelif x == [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")', 'x = int(input()[-1])\n\nif x in [2,4,5,7,9]:\n print("hon")\n\nelif x in [0,1,6,8]:\n print("pon")\n\nelse:\n print("bon")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s216418685', 's272835143', 's316347379', 's356131000', 's488346861', 's659557478', 's820625898', 's885420120', 's911093080', 's024254424']
[8988.0, 9012.0, 8984.0, 8956.0, 9100.0, 9036.0, 9100.0, 9104.0, 9156.0, 9168.0]
[25.0, 22.0, 23.0, 24.0, 22.0, 22.0, 22.0, 22.0, 21.0, 23.0]
[123, 122, 116, 117, 118, 114, 118, 122, 122, 123]
p02675
u119655368
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())\nax = a * math.cos(math.radians((h/12 + 1/12 * m/60) * 360))\nay = a * math.sin(math.radians((h/12 + 1/12 * m/60) * 360))\nbx = b * math.cos(math.radians(m/60 * 360))\nby = b * math.sin(math.radians(m/60 * 360))\nprint(math.sqrt((ax-bx)**2 + (ay-by)**2))', 'n = int(input())\nn = n % 10\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")']
['Runtime Error', 'Accepted']
['s647018048', 's269417094']
[9204.0, 8980.0]
[25.0, 25.0]
[300, 124]
p02675
u121204840
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()\ndigit = n % 10\nif(digit == "3"):\n print ("bon")\nelif(digit == "0" or digit == "1" or digit == "6" or digit == "8"):\n print ("pon")\nelse:\n print ("hon")\n', "n = input()\ndigit = n % 10\nif digit == 3:\n print('bon')\nelif digit == 0 or digit == 1 or digit == 6 or digit == 8:\n print('pon')\nelse:\n print('hon')\n", 'n = input()\ndigit = n % 10\nif digit == 3:\n print ("bon")\nelif digit == 0 or digit == 1 or digit == 6 or digit == 8:\n print ("pon")\nelse:\n print ("hon")\n', "n = input() \nint(n) \ndigit = n % 10\nif digit == 3:\n print('bon')\nelif digit == 0 or digit == 1 or digit == 6 or digit == 8:\n print('pon')\nelse:\n print('hon')\n", 'n = input()\ndigit = n % 10\nif(digit == 3)\n print "bon"\nelif(digit == 0 and digit == 1 and digit == 6 and digit == 8)\n print "pon"\nelse:\n print "hon"\n', 'n = input()\ndigit = n % 10\nif digit == 3:\n print("bon")\nelif digit == 0 or digit == 1 or digit == 6 or digit == 8:\n print("pon")\nelse:\n print("hon")\n', 'n = input()\ndigit = n % 10\nif(digit == 3)\n print ("bon")\nelif(digit == 0 and digit == 1 and digit == 6 and digit == 8)\n print ("pon")\nelse:\n print ("hon")\n', 'n = input()\ndigit = n % 10\nif digit == "3":\n print ("bon")\nelif digit == "0" or digit == "1" or digit == "6" or digit == "8":\n print ("pon")\nelse:\n print ("hon")\n', 'n = input()\ndigit = n % 10\nif(digit == 3):\n print ("bon")\nelif(digit == 0 and digit == 1 and digit == 6 and digit == 8):\n print ("pon")\nelse:\n print ("hon")\n', "ninput = input() \nn = int(ninput) \ndigit = n % 10\nif digit == 3:\n print('bon')\nelif digit == 0 or digit == 1 or digit == 6 or digit == 8:\n print('pon')\nelse:\n print('hon')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s150583802', 's202861204', 's220242030', 's339958710', 's595030241', 's647433206', 's721884089', 's748748506', 's798137043', 's216838955']
[9068.0, 9096.0, 9040.0, 9164.0, 8760.0, 8964.0, 8956.0, 8928.0, 9032.0, 9184.0]
[21.0, 23.0, 21.0, 21.0, 18.0, 25.0, 22.0, 20.0, 21.0, 22.0]
[167, 152, 155, 202, 152, 152, 158, 165, 160, 216]
p02675
u121698457
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 本".
['print("Yes")\nN, M = map(int, input().split())\npath = [[] for _ in range(N)]\nind = [0 for _ in range(N)]\nlis = set()\nfor o in range(N):\n lis.add(o)\nfor i in range(M):\n A, B = map(int, input().split())\n path[A-1].append(B-1)\n path[B-1].append(A-1)\nque = path[0]\nfor p in que:\n lis.discard(p)\nfor l in que:\n U = lis & set(path[l])\n for m in U:\n ind[m] = l\n lis.discard(m)\n que = U\n if lis == {}:\n break\nfor z in range(1,N):\n ind[z] += 1\n print(ind[z])', 'N = int(input())\nH = [2,4,5,7,9]\nP = [0,1,6,8]\nB = [3]\nif N%10 in H:\n print("hon")\nif N%10 in P:\n print("pon")\nif N%10 in B:\n print("bon")']
['Runtime Error', 'Accepted']
['s044095503', 's517196413']
[9248.0, 9176.0]
[24.0, 23.0]
[502, 147]
p02675
u123640023
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()\nm = int(n[-1])\n\nif m == 3:\n\tprint('bon')\nelif m == [0, 1, 6, 8]:\n\tprint('pon')\nelif m ==[2, 4, 5, 7, 9]:\n\tprint('hon')\n", "n = input()\nm = int(n[-1])\n\nif m == 3:\n\tprint('bon')\nelif m in [0, 1, 6, 8]:\n\tprint('pon')\nelif m in [2, 4, 5, 7, 9]:\n\tprint('hon')"]
['Wrong Answer', 'Accepted']
['s533543890', 's480808230']
[9168.0, 9172.0]
[23.0, 23.0]
[131, 131]
p02675
u123849536
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[len(n) - 1] in [2,4,5,7,9]:\n print('hon')\nelif n[len(n) - 1] in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')\n", "n = int(input()) % 10\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']
['s837719244', 's166737943']
[8968.0, 9172.0]
[22.0, 19.0]
[130, 121]
p02675
u125269142
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\na = N[-1]\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 = 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')"]
['Wrong Answer', 'Accepted']
['s254814665', 's250434652']
[8988.0, 9112.0]
[23.0, 23.0]
[167, 136]
p02675
u125337618
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 in [2,4,5,7,9]:\n print('hon')\nelif n in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')", "n = int(input()[-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"]
['Wrong Answer', 'Accepted']
['s544831118', 's580974026']
[9164.0, 9160.0]
[23.0, 22.0]
[109, 114]
p02675
u125348436
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 \ndh=30*h+m/2\ndm=6*m\n \nif dm==dh:\n rad=0\nelse:\n rad=abs(dm-dh)\n \nif rad>180:\n rad=rad-180\n length=math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(rad)))\n \nelif 0<rad and rad<180:\n length=math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(rad)))\n \nelif rad==180:\n length=a+b\n \nelse:\n length=abs(a-b)\n \nprint(length)', 'N=input()\nnum=len(N)\na={2,4,5,7,9}\nb={0,1,6,8}\nc={3}\n\nif N[num-1] in a:\n print("hon")\nelif N[num-1] in b:\n print("pon")\nelse:\n print("bon")', 'N=input()\nnum=len(N)\na={"2","4","5","7","9"}\nb={"0","1","6","8"}\nc={"3"}\nif N[num-1] in a:\n print("hon")\nelif N[num-1] in b:\n print("pon")\nelse:\n print("bon")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s327226467', 's970254712', 's870208852']
[9152.0, 9116.0, 9052.0]
[24.0, 20.0, 22.0]
[386, 148, 167]
p02675
u126183307
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=list(map(int,input().split()))\nprint("bon" if a[-1] == 3 else "pon" if a[-1] == 0 or a[-1] == 1 or a[-1] == 6 or a[-1] == 8 else "hon")', 'b=input()\na=list(b)\nc=int(a[-1])\nprint("bon" if c == 3 else "pon" if c == 0 or c == 1 or c == 6 or c == 8 else "hon")']
['Wrong Answer', 'Accepted']
['s978064070', 's319360214']
[9156.0, 9048.0]
[20.0, 22.0]
[139, 117]
p02675
u127981515
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 queue import Queue\ns=input().split(\' \')\nN=int(s[0])\nM=int(s[1])\nroom_from=[]\nroom_to=[]\n\nfor i in range(M):\n s=input().split(\' \')\n\n\n room_from.append(int(s[0]))\n room_to.append(int(s[1]))\n room_from.append(int(s[1]))\n room_to.append(int(s[0]))\n\n\n# print("from=",room_from[i],"to=",room_to[i])\n\n\n\n\n\nanswer={}\ntodo={}\ntemp={}\ntodoq=Queue(N)\n\nfor (i,room) in enumerate(room_to): \n if room_to[i] == 1:\n todo[room_from[i]]=1\n\nanswer.update(todo)\n\nwhile True:\n for a in todo:\n for (i,room) in enumerate(room_to): \n if room == a and room_from[i] not in temp and room_from[i] not in answer and room_from[i] != 1:\n temp[room_from[i]]=a\n if len(temp)==0:\n break\n else:\n todo.clear()\n todo.update(temp)\n answer.update(temp)\n temp.clear()\nprint(answer)\nif len(answer)== N-1 :\n print ("Yes")\n for n in answer:\n print (answer[n])\nelse:\n print ("No")', 's=input().split(\' \')\nN=int(s[0])\nM=int(s[1])\nroom_from=[]\nroom_to=[]\n\nfor i in range(M):\n s=input().split(\' \')\n\n\n room_from.append(int(s[0]))\n room_to.append(int(s[1]))\n room_from.append(int(s[1]))\n room_to.append(int(s[0]))\n\n\n# print("from=",room_from[i],"to=",room_to[i])\n\n\n\n\n\nanswer={}\ntemp={}\nfor (i,room) in enumerate(room_to): \n if room_to[i] == 1:\n answer[room_from[i]]=1\n\ntemp={}\nfor n in range(N):\n for a in answer:\n for (i,room) in enumerate(room_to): \n if room == a and room_from[i] not in temp and room_from[i] not in answer and room_from[i] != 1:\n temp[room_from[i]]=a\n # print("temp=",temp)\n answer.update(temp)\n# print ("answer=",answer)\n\nif len(answer)== N-1 :\n print ("Yes")\n for n in answer:\n print (answer[n])\nelse:\n print ("No")\n', 'N=input()\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")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s313547650', 's336956647', 's583508603']
[9640.0, 9236.0, 9164.0]
[27.0, 20.0, 21.0]
[999, 901, 116]
p02675
u129019798
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 本".
["def main():\n import sys\n N=int(sys.stdin.readline())\n if N%10 in [2,4,5,7,9]:\n print('hon')\n elif N%10 in [0,1,6,8]:\n print('bon')\n else:\n print('bon')\n\nmain()", "def main():\n import sys\n N=int(sys.stdin.readline())\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 else:\n print('bon')\n\nmain()"]
['Wrong Answer', 'Accepted']
['s348272832', 's051256078']
[9168.0, 9108.0]
[21.0, 23.0]
[195, 195]
p02675
u129749062
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 == 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())\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']
['s667888779', 's530856034']
[9172.0, 9196.0]
[25.0, 24.0]
[121, 132]
p02675
u130387509
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 > 100:\n n = n - (n / 100) * 100\n\nif n > 10:\n n %=10\n\n\nprint(int(n))', 'n = int(input())\n\nif n > 100:\n n = n - n // 100 * 100\nif n > 10:\n n %=10\nprint(n)\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 = int(input())\n\nif n > 100:\n n = n - int(n / 100) * 100\nif n > 10:\n n %=10\nprint(n)\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 = int(input())\n\nif n > 100:\n n = n - n // 100 * 100\nif n > 10:\n n %=10\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")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s715595631', 's966232761', 's967227507', 's076982779']
[9164.0, 9188.0, 9196.0, 9184.0]
[23.0, 24.0, 23.0, 23.0]
[98, 241, 245, 232]
p02675
u131464432
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")\nelif n % 10 == (0,1,6,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")']
['Wrong Answer', 'Accepted']
['s476525048', 's452887792']
[9000.0, 9132.0]
[30.0, 29.0]
[110, 146]
p02675
u131666536
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 本".
['# -*- coding: utf-8 -*-\n"""\nCreated on Mon May 18 14:53:59 2020\n\n@author: 17664\n"""\n\nyomi = {2:\'hon\', 4:\'hon\', 5:\'hon\', 7:\'hon\', 9:\'hon\', 0:\'pon\', 1:\'pon\',\n 6:\'pon\', 8:\'pon\', 3:\'bon\'}\n\nprint(yomi[input()[-1]])', '# -*- coding: utf-8 -*-\n"""\nCreated on Mon May 18 14:53:59 2020\n\n@author: 17664\n"""\n\nyomi = {2:\'hon\', 4:\'hon\', 5:\'hon\', 7:\'hon\', 9:\'hon\', 0:\'pon\', 1:\'pon\',\n 6:\'pon\', 8:\'pon\', 3:\'bon\'}\n\nprint(yomi[int(input()[-1])])']
['Runtime Error', 'Accepted']
['s152859116', 's079290349']
[9104.0, 9164.0]
[24.0, 24.0]
[216, 221]
p02675
u132894387
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.reverse()\na = int(N[0])\nans = []\nif a==2 || a==4 || a==5 || a==7 || a==9:\n ans = "hon"\nif a==0 || a==1 || a==6 || a==8:\n ans = "pon"\nif a==3:\n ans = "bon"\n \nprint(ans)', 'N = input()\nN = N[::-1]\na = int(N[0])\nans = []\nif a==2 or a==4 or a==5 or a==7 or a==9:\n ans = "hon"\nif a==0 or a==1 or a==6 or a==8:\n ans = "pon"\nif a==3:\n ans = "bon"\n \nprint(ans)\n']
['Runtime Error', 'Accepted']
['s724958501', 's465845626']
[9016.0, 9184.0]
[25.0, 25.0]
[185, 186]
p02675
u134245489
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\nimport sys\n\na, b, h, m = map(float, input().split())\nhour = 30 * h + 0.5 * m\nminute = 6 * m\n\nradian = abs(hour - minute)\nif radian > 180:\n radian = 360 - abs(hour - minute)\n\ndist = a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(radian))\nprint(math.sqrt(dist))\n', 'import math\n\na, b, h, m = map(float, input().split())\nhour = 30 * h + 0.5 * m\nminute = 6 * m\n\nradian = abs(hour - minute)\nif radian > 180:\n radian = 360 - abs(hour - minute)\n\ndist = a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(radian))\nprint(math.sqrt(dist))\n', "book_num = int(input())\nfirst_digit = book_num % 10\nif first_digit in [2, 4, 5, 7, 9]:\n print('hon')\nelif first_digit in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('bon')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s289037099', 's963910845', 's122123221']
[8984.0, 9092.0, 9164.0]
[25.0, 23.0, 20.0]
[280, 269, 178]
p02675
u135197221
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\nremainder = n[-1]\nif remainder in (2, 4, 5, 7, 9): print("hon")\nelif remainder in (0,1,6,8): print("pon")\nelif remainder in (3): print("bon")', 'n = input()\n\nremainder = int(n[-1])\nif remainder in (2, 4, 5, 7, 9): print("hon")\nelif remainder in (0,1,6,8): print("pon")\nelif remainder is 3: print("bon")']
['Runtime Error', 'Accepted']
['s833171944', 's814145008']
[9176.0, 9040.0]
[25.0, 31.0]
[159, 157]
p02675
u136284779
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('bon')\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", "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')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s113874789', 's768149482', 's754682198']
[9020.0, 8964.0, 9136.0]
[24.0, 26.0, 20.0]
[129, 129, 134]
p02675
u137038354
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\nnn = n[-1]\nk = int(nn)\n\nif(k==2 or k==4 or k==5 or k==7 or k==9):\n print(\'hon\')\nelif(k==0 or k==1 or k==6 or k==8):\n print(\'pon\')\nelse:\n print("bon")\n\nprint(k)', 'n = str(input())\n\nnn = n[-1]\nk = int(nn)\n\nif(k==2 or k==4 or k==5 or k==7 or k==9):\n print(\'hon\')\nelif(k==0 or k==1 or k==6 or k==8):\n print(\'pon\')\nelse:\n print("bon")\n']
['Wrong Answer', 'Accepted']
['s688736788', 's264687665']
[9100.0, 9116.0]
[20.0, 22.0]
[186, 177]
p02675
u137226361
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()\namari = n%10\np = ''\nif amari ==2 or amari ==4 or amari ==5 or amari ==7 or amari ==9:\n p = 'hon'\nelif amari ==1 or amari ==0 or amari ==6 or amari ==8 :\n p = 'pon'\nelse:\n p = 'bon'\nprint(p)", "n = input()\namari = n//10\np = ''\nif amari ==2 or amari ==4 or amari ==5 or amari ==7 or amari ==9:\n p = 'hon'\nelif amari ==1 or amari ==0 or amari ==6 or amari ==8 :\n p = 'pon'\nelse:\n p = 'bon'\nprint(p)", "n = int(input())\namari = n%10\np = ''\nif amari ==2 or amari ==4 or amari ==5 or amari ==7 or amari ==9:\n p = 'hon'\nelif amari ==1 or amari ==0 or amari ==6 or amari ==8 :\n p = 'pon'\nelse:\n p = 'bon'\nprint(p)"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s226349616', 's464234670', 's692049659']
[9048.0, 8984.0, 9128.0]
[24.0, 24.0, 22.0]
[210, 211, 215]
p02675
u143509139
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 == 3:\n print('bon')\nelif n in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('hon')\n", "n = int(input())\nn %= 10\nif n == 3:\n print('bon')\nelif n in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('hon')\n"]
['Wrong Answer', 'Accepted']
['s902162114', 's697561300']
[9100.0, 8912.0]
[29.0, 26.0]
[109, 117]
p02675
u146057001
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\nn = 60 * h + m\n\nr = n * math.pi * 11 / 360\n\nans = math.sqrt(a ** 2 + b ** 2 - 0.5 * a * b * math.cos(r))\n\nprint(ans)\n', 'n = int(input())\n\nwhile n >= 10:\n n -= 10\n\nif n == 3:\n print("bon")\n\nelif n == 0 or n == 1 or n == 6 or n == 8:\n print("pon")\n\nelse:\n print("hon")\n']
['Runtime Error', 'Accepted']
['s139823076', 's626746051']
[9172.0, 9160.0]
[20.0, 28.0]
[169, 159]
p02675
u146066372
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()\nprint(N[-1])\nhon=[2,4,5,7,9]\npon=[0,1,6,8]\nbon=[3]\n\nif int(N[-1]) in hon:\n print("hon")\nelif int(N[-1]) in pon :\n print("pon")\nelse:\n print("bon")', 'N=input()\nhon=[2,4,5,7,9]\npon=[0,1,6,8]\nbon=[3]\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']
['s015346464', 's399817046']
[9180.0, 9068.0]
[28.0, 24.0]
[165, 152]
p02675
u148183225
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\na = len(S)\n\n\nif a <= K:\n print(S)\nelse:\n print(S[:K] + ("..."))', 's = str(input())\ns[-1] = z\nif z = 2 or 4 or 5 or 7 or 9;\n\tprint("hon")\nelif z = 0 or 1 or 6 or 8;\n print("pon")\nelse;\n\tprint("bon")', 's =str(input())\nz = int(s[-1])\nif z == 2 or z == 4 or z == 5 or z == 7 or z == 9:\n\tprint("hon")\nelif z == 0 or z == 1 or z == 6 or z == 8:\n print("pon")\nelse:\n\tprint("bon")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s022989600', 's849712033', 's438574096']
[9012.0, 8984.0, 9104.0]
[22.0, 25.0, 21.0]
[99, 134, 175]
p02675
u153823221
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\na = [2,4,5,7,9]\nb = [0,1,8]\n\nprint(n[-1:])\nif n[-1:] in a:\n print("hon")\nelif n[-1:] in b:\n print("pon")\nelse:\n print("bon")\n \n', 'n = str(input())\n\na = ["2", "4", "5", "7", "9"]\nb = ["0", "1", "8"]\nc = ["3", "6"]\n\n\nif n[-1:] in a:\n print("hon")\nelif n[-1:] in b:\n print("pon")\nelse:\n print("bon")\n ', 'n = str(input())\n\na = [2,4,5,7,9]\nb = [0,1,8]\n\n\nif n[-1:] in a:\n print("hon")\nelif n[-1:] in b:\n print("pon")\nelse:\n print("bon")\n \n', 'n = str(input())\n\na = ["2", "4", "5", "7", "9"]\nb = ["0", "1", "6", "8"]\nc = ["3"]\n\n\nif n[-1:] in a:\n print("hon")\nelif n[-1:] in b:\n print("pon")\nelse:\n print("bon")\n ']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s089228839', 's750417745', 's936342960', 's360316334']
[9112.0, 9068.0, 9104.0, 9104.0]
[22.0, 21.0, 21.0, 22.0]
[149, 172, 136, 172]
p02675
u159977386
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]\nif a==2 or a==4 or a==5 or a==7 or a==9:\n print("hon")\n\nif a==0 or a==1 or a==6 or a==8:\n print("pon")\n\nif a==3:\n print("bon")', 'N=input()\na=N[-1]\nif a=="2" or a=="4" or a=="5" or a=="7" or a=="9":\n print("hon")\n\nif a=="0" or a=="1" or a=="6" or a=="8":\n print("pon")\n\nif a=="3":\n print("bon")']
['Wrong Answer', 'Accepted']
['s592777993', 's281188306']
[9124.0, 8980.0]
[21.0, 22.0]
[147, 167]
p02675
u161024749
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())\nx=N%10\nif x==3:\n print("bon")\nelif x==0 or x==1 or X==6 or x==8:\n print("pon")\nelse:\n print("hon")', 'K=int(input(""))\nS=input("")\nlenS=len(S)\nif lenS<=K:\n print(S)\nelse:\n print(S[:K]+"...")', '\nN=int(input(""))\nx=N%10\nif x==3:\n print("bon")\nelif x==0 or x==1 or x==6 or x==8:\n print("pon")\nelse:\n print("hon")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s659164878', 's705823946', 's059548965']
[9112.0, 9104.0, 9052.0]
[24.0, 23.0, 22.0]
[116, 90, 120]
p02675
u163201677
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 = int(input())\nn = (s % 100)\n\nif n == 3:\n\tprint('bon')\n \nif n in {0, 1, 6, 8}:\n\tprint('pon') \n \nif n in {2, 4, 5, 7, 9}:\n\tprint('hon') ", 'n = int(input())\n \nif n == 3:\n\tprint(\'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 = int(input())\n \nif n == 3:\n\tprint('bon')\n \nif n in {0, 1, 6, 8}:\n\tprint('pon') \n \nif n in {2, 4, 5, 7, 9}:\n\tprint('hon') ", "s = int(input())\nn = (s % 10)\n \nif n == 3:\n\tprint('bon')\n \nif n in {0, 1, 6, 8}:\n\tprint('pon') \n \nif n in {2, 4, 5, 7, 9}:\n\tprint('hon') "]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s112886752', 's447467108', 's861084456', 's007587528']
[9128.0, 9132.0, 8952.0, 9136.0]
[21.0, 21.0, 21.0, 24.0]
[144, 153, 131, 143]
p02675
u163353866
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,b,c,k = map(int,input().split())\n\nif a>k:\n ans = k\nelif a+b>k:\n ans = a\nelse:\n ans = a-(k-a-b)\n\nprint(ans)', 's=[]\ns=list(input())\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 ']
['Runtime Error', 'Accepted']
['s644595708', 's474465441']
[9168.0, 9108.0]
[20.0, 22.0]
[117, 158]
p02675
u163703551
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 socket\n\nhostname = socket.gethostname()\n\nif hostname == 'F451C':\n sys.stdin = open('a1.in')\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main():\n N = read_int()\n if N % 10 == 2 or 4 or 5 or 7 or 9:\n res = 'hon'\n elif N % 10 == 0 or 1 or 6 or 8:\n res = 'pon'\n elif N % 10 == 3:\n res = 'bon'\n print(res)\n\n\nmain()\n", "import sys\nimport socket\n\nhostname = socket.gethostname()\n\nif hostname == 'F451C':\n sys.stdin = open('a1.in')\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str():\n return input()\n\n\ndef main():\n N = read_int()\n d = N % 10\n if d == 2 or d == 4 or d == 5 or d == 7 or d == 9:\n res = 'hon'\n elif d == 0 or d == 1 or d == 6 or d == 8:\n res = 'pon'\n else:\n res = 'bon'\n print(res)\n\n\nmain()\n"]
['Wrong Answer', 'Accepted']
['s786005129', 's977301321']
[9872.0, 9804.0]
[29.0, 29.0]
[518, 546]
p02675
u164471280
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 = map(int, input().split())\nANS = [-1]*(n+1)\nP = []\nL = [[] for i in range(n+1)]\nfor i in range(m):\n a, b = map(int, input().split())\n\n if a == 1:\n ANS[b] = 1\n P.append(b)\n elif b == 1:\n ANS[a] = 1\n P.append(a)\n else: \n L[a].append(b)\n L[b].append(a)\n\n# print(L, ANS, P)\n\ni = 0\nwhile len(P) < n-1:\n for j in range(1, n+1):\n if P[i] in L[j] and ANS[j] == -1:\n P.append(j)\n L[j].remove(P[i])\n ANS[j] = P[i]\n # print(i, P[i], j, L, ANS, P)\n i += 1\n\nprint('Yes')\nfor i in range(2, n+1):\n print(ANS[i])\n", "s = input()\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')"]
['Runtime Error', 'Accepted']
['s561152310', 's543326047']
[9248.0, 9108.0]
[22.0, 23.0]
[620, 144]
p02675
u165133750
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()\nx = n[-1]\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', 'n = input()\nx = n[-1]\nif int(x) in [2,4,5,7,9]:\n print("hon")\nelif int(x) in [0,1,6,8]:\n print("pon")\nelse:\n print("bon")\n\n']
['Wrong Answer', 'Accepted']
['s397378628', 's211683912']
[9096.0, 9164.0]
[23.0, 21.0]
[121, 132]
p02675
u165429863
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 os\n\nn = sys.argv[1]\nn = n[-1]\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")\nelif n == "3":\n print("bon")\n\nsys.exit()\n', '#168 - F\nimport sys\nimport numpy as np\n#from numba import njit\n\n\nN, M = map(int, sys.stdin.buffer.readline().split())\nLineData = np.int64(sys.stdin.buffer.read().split())\n\nINF = 10**9 + 1\n\nLineData = LineData.reshape(-1, 3)\nA, B, C = LineData[:N].T\nD, E, F = LineData[N:].T\n\n\nX = np.unique(np.concatenate([D, [-INF, INF]]))\nY = np.unique(np.concatenate([C, [-INF, INF]]))\nA = np.searchsorted(X, A)\nB = np.searchsorted(X, B, \'right\') - 1\nC = np.searchsorted(Y, C)\nD = np.searchsorted(X, D)\nE = np.searchsorted(Y, E)\nF = np.searchsorted(Y, F, \'right\') - 1\n\nx = np.searchsorted(X, 0, \'right\') - 1\ny = np.searchsorted(Y, 0, \'right\') - 1\n\nDX = X[1:] - X[:-1]\nDY = Y[1:] - Y[:-1]\n\nA = A.tolist()\nB = B.tolist()\nC = C.tolist()\nD = D.tolist()\nE = E.tolist()\nF = F.tolist()\nX = X.tolist()\nY = Y.tolist()\nDX = DX.tolist()\nDY = DY.tolist()\n\nLenX = len(X)\nLenY = len(Y)\n\nvisit = [[False] * LenY for _ in range(LenX)]\nvisit[x][y] = True\narea = 0\nqueue = [(x, y)]\n\nLineX = [[False] * LenY for _ in range(LenX)]\nLineY = [[False] * LenY for _ in range(LenX)]\n\n\n# for x in range(x1, x2):\n# LineY[x][y] = True\nfor i in range(len(A)):\n y = C[i]\n for x in range(A[i], B[i]):\n LineY[x][y] = True\n\n\n# for y in range(y1, y2):\n# LineX[x][y] = True\nfor i in range(len(D)):\n x = D[i]\n for y in range(E[i], F[i]):\n LineX[x][y] = True\n\nLenX -= 1\nLenY -= 1\n\nwhile queue:\n x, y = queue.pop()\n \n if x == 0 or x == LenX or y == 0 or y == LenY:\n area = 0\n break\n \n area += DX[x] * DY[y]\n \n x1 = x - 1\n if not LineX[x][y] and not visit[x1][y]:\n visit[x1][y] = True\n queue.append((x1, y))\n y1 = y - 1\n if not LineY[x][y] and not visit[x][y1]:\n visit[x][y1] = True\n queue.append((x, y1))\n x1 = x + 1\n if not LineX[x1][y] and not visit[x1][y]:\n visit[x1][y] = True\n queue.append((x1, y))\n y1 = y + 1\n if not LineY[x][y1] and not visit[x][y1]:\n visit[x][y1] = True\n queue.append((x, y1))\n\nif area == 0:\n print("INF")\nelse:\n print(area)\n', 'import sys\nimport os\n\nn = input()\nn = n[-1]\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")\nelif n == "3":\n print("bon")\n\nsys.exit()\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s507539313', 's860524962', 's025787747']
[9116.0, 27068.0, 9108.0]
[22.0, 109.0, 22.0]
[239, 2226, 235]
p02675
u165436807
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[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", "N = input()\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"]
['Wrong Answer', 'Accepted']
['s682737577', 's658389604']
[9080.0, 9112.0]
[25.0, 24.0]
[173, 183]
p02675
u165641688
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\nn_last =list(input())[-1]\n\nif n_last in [3]:\n\tprint('bon')\nelif n_last in [0,1,6,8] :\n\tprint('pon')\nelse:\n\tprint('hon')\n\n", "\n\nn_last = int(list(input())[-1])\n\nif n_last in [3]:\n\tprint('bon')\nelif n_last in [0,1,6,8] :\n\tprint('pon')\nelse:\n\tprint('hon')\n\n"]
['Wrong Answer', 'Accepted']
['s940666475', 's777459544']
[9064.0, 9172.0]
[20.0, 23.0]
[123, 129]
p02675
u168832623
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 = map(int, input().split())\nif (N % 10 == 3):\n\tprint("bon")\nelif (N % 10 ==0 or N % 10 ==1 or N % 10 ==6 or N % 10 ==8):\n\tprint("pon")\nelse:\n\tprint("hon)\n', 'import math\nA,B,H,M = map(float, input().split())\nrate = M / 60.0\nHM = H*5.0 + 10.0*rate\ntheta = abs(HM-M) * 6.0\nif theta > 180:\n theta = 360-theta\n\n\nL = math.sqrt(A**2 + B**2 - 2*A*B*abs(math.cos(math.radians(theta))))\nif H==0 and M ==0:\n L = 0\nprint("{:.19f}".format(L))', 'N = int(input())\nif (N % 10 == 3):\n\tprint("bon")\nelif (N % 10 ==0 or N % 10 ==1 or N % 10 ==6 or N % 10 ==8):\n\tprint("pon")\nelse:\n\tprint("hon")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s090266658', 's532230855', 's586849777']
[9032.0, 8980.0, 9172.0]
[20.0, 24.0, 21.0]
[156, 329, 143]
p02675
u169138653
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()\nif len(s)>k:\n print(s[:k]+"...")\nelse:\n print(s[:k])', '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', 'Accepted']
['s755940339', 's177206038']
[9160.0, 9040.0]
[25.0, 23.0]
[83, 140]
p02675
u175590965
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")\nelif n%10 == 2 or 4 or 5 or 7 or 9:\n print("hon")\nelse:\n print("pon")', 'n = input()\nif n[-1] == 3:\n print("bon")\nelif n[-1] in (0,1,6,8):\n print("pon")\nelse:\n print("hon")', 'n = int(input())\nif n%10 == 3:\n print("bon")\nelif n%10 in [2,4,5,7,9]:\n print("hon")\nelse:\n print("pon")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s315063797', 's344804608', 's904194656']
[9104.0, 9108.0, 9172.0]
[22.0, 22.0, 22.0]
[123, 108, 113]