Buggy python submission (verdict: Runtime Error):

class abc_168:
    
    def __init__(self):
        pass
    
    def A(self):
       N=int(input())
       hon=[2,4,5,7,9]
       pon=[0,1,6,8]
       bon=[3]
       
       ans=N%100
       ans=ans%10
       
       if ans in hon:print("hon")
       elif ans in pon:print("pon")
       else :print("bon")
    
    def B(self):
        K=int(input())
        S=input()
        
        if len(S)<=K:print(S)
        else:
            ans=S[0:K]+"..."
            print(ans)
        
    def C(self):
        ABHM=list(map(int,input().split()))
        cos=[]
        for i in range(361):cos.append(math.cos(math.radians(i)))
        
        if ABHM[2]==0:ABHM[2]=12
        if ABHM[3]==0:ABHM[3]=60
        
        radi=int(((abs(ABHM[2]-(ABHM[3]/5))*5)-(ABHM[3]%5))*6)
        #print(abs(ABHM[2]-(ABHM[3]/5)))
        #print(radi)
        ans=(ABHM[0]**2)+(ABHM[1]**2)-(2*ABHM[0]*ABHM[1]*math.cos(math.radians(radi)))
        #print(cos[radi])
        #print(ans)
        print(math.sqrt(ans))
        
        
            
    def D(self):
        pass
        
    def E(self):
        pass
    
    def F(self):
        pass
    
    
if __name__=='__main__':
    obj=abc_168()
    obj.C()

Fixed submission:
import math

class abc_168:
    
    def __init__(self):
        pass
    
    def A(self):
       N=int(input())
       hon=[2,4,5,7,9]
       pon=[0,1,6,8]
       bon=[3]
       
       ans=N%100
       ans=ans%10
       
       if ans in hon:print("hon")
       elif ans in pon:print("pon")
       else :print("bon")
    
    def B(self):
        K=int(input())
        S=input()
        
        if len(S)<=K:print(S)
        else:
            ans=S[0:K]+"..."
            print(ans)
        
    def C(self):
        ABHM=list(map(int,input().split()))
        
        radi=abs((ABHM[2]*5)+((ABHM[3]*5)/60)-ABHM[3])*6
        #print(radi)
        ans=(ABHM[0]**2)+(ABHM[1]**2)-(2*ABHM[0]*ABHM[1]*math.cos(math.radians(radi)))
        print(math.sqrt(ans))
            
    def D(self):
        pass
        
    def E(self):
        pass
    
    def F(self):
        pass
    
    
if __name__=='__main__':
    obj=abc_168()
    obj.C()

Buggy python submission (verdict: Runtime Error):

class abc_168:
    
    def __init__(self):
        pass
    
    def A(self):
       N=int(input())
       hon=[2,4,5,7,9]
       pon=[0,1,6,8]
       bon=[3]
       
       ans=N%100
       ans=ans%10
       
       if ans in hon:print("hon")
       elif ans in pon:print("pon")
       else :print("bon")
    
    def B(self):
        K=int(input())
        S=input()
        
        if len(S)<=K:print(S)
        else:
            ans=S[0:K]+"..."
            print(ans)
        
    def C(self):
        ABHM=list(map(int,input().split()))
        cos=[]
        for i in range(361):cos.append(math.cos(math.radians(i)))
        
        if ABHM[2]==0:ABHM[2]=12
        if ABHM[3]==0:ABHM[3]=60
        
        radi=int(((abs(ABHM[2]-(ABHM[3]/5))*5)-(ABHM[3]%5))*6)
        #print(radi)
        ans=(ABHM[0]**2)+(ABHM[1]**2)-(2*ABHM[0]*ABHM[1]*cos[radi])
        #print(cos[radi])
        #print(ans)
        print(math.sqrt(ans))
        
        
            
    def D(self):
        pass
        
    def E(self):
        pass
    
    def F(self):
        pass
    
    
if __name__=='__main__':
    obj=abc_168()
    obj.C()

Fixed submission:
import math

class abc_168:
    
    def __init__(self):
        pass
    
    def A(self):
       N=int(input())
       hon=[2,4,5,7,9]
       pon=[0,1,6,8]
       bon=[3]
       
       ans=N%100
       ans=ans%10
       
       if ans in hon:print("hon")
       elif ans in pon:print("pon")
       else :print("bon")
    
    def B(self):
        K=int(input())
        S=input()
        
        if len(S)<=K:print(S)
        else:
            ans=S[0:K]+"..."
            print(ans)
        
    def C(self):
        ABHM=list(map(int,input().split()))
        
        radi=abs((ABHM[2]*5)+((ABHM[3]*5)/60)-ABHM[3])*6
        #print(radi)
        ans=(ABHM[0]**2)+(ABHM[1]**2)-(2*ABHM[0]*ABHM[1]*math.cos(math.radians(radi)))
        print(math.sqrt(ans))
            
    def D(self):
        pass
        
    def E(self):
        pass
    
    def F(self):
        pass
    
    
if __name__=='__main__':
    obj=abc_168()
    obj.C()