Skip to content

Instantly share code, notes, and snippets.

@monhime
Created May 17, 2020 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monhime/952b384c1c2d304354696dfc7e80a237 to your computer and use it in GitHub Desktop.
Save monhime/952b384c1c2d304354696dfc7e80a237 to your computer and use it in GitHub Desktop.
ABC168 A問題 解答
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
n=int(input())
if n%10==2 or n%10==4 or n%10==5 or n%10==7 or n%10==9:
print("hon")
elif n%10==0 or n%10==1 or n%10==6 or n%10==8:
print("pon")
else:
print("bon")
if __name__=='__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment