A - ∴ (Therefore) Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点: 100100

問題文

いろはちゃんは、人気の日本製ゲーム「ÅtCoder」で遊びたい猫のすぬけ君のために日本語を教えることにしました。

日本語で鉛筆を数えるときには、助数詞として数の後ろに「本」がつきます。この助数詞はどんな数につくかで異なる読み方をします。具体的には、999999 以下の正の整数 NN について、「NN 本」と言うときの「本」の読みは

  • NN11 の位が 2,4,5,7,92, 4, 5, 7, 9 のとき hon
  • NN11 の位が 0,1,6,80, 1, 6, 8 のとき pon
  • NN11 の位が 33 のとき bon

です。

NN が与えられるので、「NN 本」と言うときの「本」の読みを出力してください。

制約

  • NN999999 以下の正の整数

入力

入力は以下の形式で標準入力から与えられる。

NN

出力

答えを出力せよ。


入力例 1Copy

Copy
16

出力例 1Copy

Copy
pon

161611 の位は 66 なので、「本」の読みは pon です。


入力例 2Copy

Copy
2

出力例 2Copy

Copy
hon

入力例 3Copy

Copy
183

出力例 3Copy

Copy
bon

Score: 100100 points

Problem Statement

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 "NN 本" for a positive integer NN not exceeding 999999 is as follows:

  • hon when the digit in the one's place of NN is 22, 44, 55, 77, or 99;
  • pon when the digit in the one's place of NN is 00, 11, 66 or 88;
  • bon when the digit in the one's place of NN is 33.

Given NN, print the pronunciation of "本" in the phrase "NN 本".

Constraints

  • NN is a positive integer not exceeding 999999.

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer.


Sample Input 1Copy

Copy
16

Sample Output 1Copy

Copy
pon

The digit in the one's place of 1616 is 66, so the "本" in "1616 本" is pronounced pon.


Sample Input 2Copy

Copy
2

Sample Output 2Copy

Copy
hon

Sample Input 3Copy

Copy
183

Sample Output 3Copy

Copy
bon


2025-04-23 (Wed)
16:10:12 +00:00