Created
May 17, 2020 23:59
-
-
Save monhime/952b384c1c2d304354696dfc7e80a237 to your computer and use it in GitHub Desktop.
ABC168 A問題 解答
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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