Buggy python submission (verdict: Runtime Error):
import math

a, b, h, m = map(int, input().split())

deg_h = 360 / 12
deg_m = 360 / 60

H = h * deg_h + m * (deg_h/60)
M = m * deg_m
deg = abs(H - M)

if deg > 180:
    deg = 360 - deg

rad = (deg/180) * math.pi
c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(rad))
print(c)


Fixed submission:
n = input()

if(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):
    print('pon')
elif(n[-1] == '3'):
    print('bon')
else:
    print('hon')

Buggy python submission (verdict: Runtime Error):
import math
def resolve():
    A, B, H, M = map(int, input().split())
    #短針が1時間で進む角度 30c
    deg_H = 360/12
    # 長針が1分間で進む角度 6c
    deg_M = 360/60

    hr = deg_H*H + (deg_H/60)*M
    mr = deg_M*M
    deg = abs(hr-mr)
    if deg>180:
        deg = 360- deg

    # 角度をラジアンに直す
    red = (deg/180)*math.pi
    ans = math.sqrt(A*A + B*B - 2*A*B*math.cos(red))
    print(ans)

if __name__ == "__main__":
    resolve()


Fixed submission:
n = input()

if(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):
    print('pon')
elif(n[-1] == '3'):
    print('bon')
else:
    print('hon')

Buggy python submission (verdict: Runtime Error):
import math

a, b, h, m = map(int, input().split())

deg_h = 360 / 12
deg_m = 360 / 60

H = h * deg_h + m * deg_m
M = m * deg_m
deg = abs(H - M)

if deg > 180:
    deg = 360 - deg

rad = (deg/180) * math.pi
c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(rad))
print(c)


Fixed submission:
n = input()

if(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):
    print('pon')
elif(n[-1] == '3'):
    print('bon')
else:
    print('hon')

Buggy python submission (verdict: Runtime Error):
import math

a, b, h, m = map(int, input().split())

deg_h = 360 / 12
deg_m = 360 / 60

H = h * deg_h + m * deg_m
M = m * deg_m
deg = abs(H - M)

if deg > 180:
    deg = 360 - deg

rad = (deg*math.pi) / 180
c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(rad))
print(c)


Fixed submission:
n = input()

if(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):
    print('pon')
elif(n[-1] == '3'):
    print('bon')
else:
    print('hon')

Buggy python submission (verdict: Runtime Error):
import numpy as np

a, b, h, m = map(int, input().split())

H = h * 30 + m*0.5
M = m * 6

if(H > M):
    deg = H - M
    rad = (deg*np.pi) / 180
    c = np.sqrt(a**2 + b**2 - 2*a*b*np.cos(rad))
    print(c)
elif(H < M):
    deg = M - H
    rad = (deg*np.pi) / 180
    c = np.sqrt(a**2 + b**2 - 2*a*b*np.cos(rad))
    print(c)
else:
    print(b-a)


Fixed submission:
n = input()

if(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):
    print('pon')
elif(n[-1] == '3'):
    print('bon')
else:
    print('hon')

Buggy python submission (verdict: Runtime Error):
import numpy as np

a, b, h, m = map(int, input().split())

H = h * 30 + m*0.5
M = m * 6

if(H > M):
    deg = H - M
    rad = (deg*np.pi) / 180
    c = np.sqrt(a**2 + b**2 - 2*a*b*np.cos(rad))
    print(c)
elif(H < M):
    deg = M - H
    rad = (deg*np.pi) / 180
    c = np.sqrt(a**2 + b**2 - 2*a*b*np.cos(rad))
    print(c)
else:
    print(b-a)


Fixed submission:
n = input()

if(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):
    print('pon')
elif(n[-1] == '3'):
    print('bon')
else:
    print('hon')

Buggy python submission (verdict: Runtime Error):
n = input()

if( n[-1]=='0' or n[-1]=='6' or n[-1]=='1' or n[-1]=='8' ):
    print('pon')
else if( n[-1]=='3' ):
    print('bon')
else:
    print('hon')


Fixed submission:
n = input()

if(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):
    print('pon')
elif(n[-1] == '3'):
    print('bon')
else:
    print('hon')

Buggy python submission (verdict: Runtime Error):
n = input()

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

Fixed submission:
n = input()

if(n[-1] == '0' or n[-1] == '6' or n[-1] == '1' or n[-1] == '8'):
    print('pon')
elif(n[-1] == '3'):
    print('bon')
else:
    print('hon')