Problem p02675 (python)

Fixed submission:
s = input()
n = len(s)
a = s[n-1:n]
if a == '2' or a == '4' or a == '5' or a == '7' or a == '9':
  print('hon')
elif a == '0' or a == '1' or a == '6' or a == '8':
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = input()
if s.endswith('2') == True or s.endswith('4') ==True or s.endswitch('5') == True or s.endswith('7') == True or s.endswith('9') == True:
  
  print('hon')
elif s.endswith('0') == True or s.endswith('1') == True or s.endswitch('6') == True or s.endswitch('8') == True:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = input()
if s.endswith(2) == True or s.endswith(4) ==True or s.endswitch(5) == True or s.endswith(7) == True or s.endswith(9) == True:
  
  print('hon')
elif s.endswith(0) == True or s.endswith(1) == True or s.endswitch(6) == True or s.endswitch(8) == True:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = input()
if s.endswith(2,4,5,7,9) == True:
  print('hon')
elif s.endswith(0,1,6,8) == True:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = input()
n = len(s)
b = [s]

c = n-1
a = b[c]
if a == 2 or a == 4 or a == 5 or a == 7 or a == 9:
  print('hon')
elif a == 0 or a == 1 or a == 6 or a == 8:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = input()
n = len(s)
b = [s]

c = n-1
a = b[c]
if a == '2' or a == '4' or a == '5' or a == '7' or a == '9':
  print('hon')
elif a == '0' or a == '1' or a == '6' or a == '8':
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = input()
b = [s]
n = len(s)
c = n-1
a = b[c]
if a == '2' or a == '4' or a == '5' or a == '7' or a == '9':
  print('hon')
elif a == '0' or a == '1' or a == '6' or a == '8':
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = input()
b = [s]
n = len(s)
a = b[n-1]
if a == '2' or a == '4' or a == '5' or a == '7' or a == '9':
  print('hon')
elif a == '0' or a == '1' or a == '6' or a == '8':
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = int(input())
b = [s]
n = len(s)
a = b[n-1]
if a == '2' or a == '4' or a == '5' or a == '7' or a == '9':
  print('hon')
elif a == '0' or a == '1' or a == '6' or a == '8':
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = int(input())
b = [s]
n = len(s)
a = b[n]
if a == '2' or a == '4' or a == '5' or a == '7' or a == '9':
  print('hon')
elif a == '0' or a == '1' or a == '6' or a == '8':
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = int(input())
b = [s]
n = len(s)
a = b[n]
if a == 2 or a == 4 or a == 5 or a == 7 or a == 9:
  print('hon')
elif a == 0 or a == 1 or a == 6 or a == 8:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = list(int,input())
n = len(s)
a = s[n]
if a == 2 or a == 4 or a == 5 or a == 7 or a == 9:
  print('hon')
elif a == 0 or a == 1 or a == 6 or a == 8:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = int(input())
n = len(s)
a = s[n-1:n]
if a == 2 or a == 4 or a == 5 or a == 7 or a == 9:
  print('hon')
elif a == 0 or a == 1 or a == 6 or a == 8:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = int(input())
n = len(s)
a = s[:n]
if a == 2 or a == 4 or a == 5 or a == 7 or a == 9:
  print('hon')
elif a == 0 or a == 1 or a == 6 or a == 8:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = int(input())
n = len(s)
a = s[n]
if a == 2 or a == 4 or a == 5 or a == 7 or a == 9:
  print('hon')
elif a == 0 or a == 1 or a == 6 or a == 8:
  print('pon')
else:
  print('bon')

Buggy submission (verdict: Runtime Error):
s = int(input())
n = len(s)
if s[n] == 2,4,5,7,9:
  print('hon')
elif s[n] = 0,1,6,8:
  print('pon')
else:
  print('bon')