Buggy python submission (verdict: Runtime Error):
import math
tan = int(input())
chou = int(input())
ji = int(input())
hun = int(input())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(math.cos(math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)**.5
print(ans)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
tan = int(input())
chou = int(input())
ji = int(input())
hun = int(input())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(math.cos(math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)**.5
print(ans)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
tan = int(input())
chou = int(input())
ji = int(input())
hun = int(input())
ans = float(0)
kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(math.cos(math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)
print((ans)**0.5)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
tan = int(input())
chou = int(input())
ji = int(input())
hun = int(input())
ans = float(0)
kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(math.cos(math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)
print((ans)**0.5)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
chou = int(input())
tan = int(input())
ji = int(input())
hun = int(input())
ans = float(0)
kakudo = abs(((ji*30 + hun*.6) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(math.radians(kakudo))

kakudo = math.cos(kakudo)

ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)
print((ans)**0.5)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
chou = int(input())
tan = int(input())
ji = int(input())
hun = int(input())
ans = float(0)
kakudo = abs(((ji*30 + hun*.6) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(math.radians(kakudo))

kakudo = math.cos(kakudo)

ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)
print((ans)**0.5)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
chou = int(input())
tan = int(input())
ji = int(input())
hun = int(input())
ans = float(0)
kakudo = abs(((ji*30 + hun*.6) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(kakudo)

kakudo = math.cos(math.radians(kakudo))

ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)
print((ans)**0.5)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
chou = int(input())
tan = int(input())
ji = int(input())
hun = int(input())
ans = float(0)
kakudo = abs(((ji*30 + hun*.6) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(kakudo)
print(kakudo)
kakudo = math.cos(math.radians(kakudo))
print(kakudo)
ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)
print((ans)**0.5)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
chou = int(input())
tan = int(input())
ji = int(input())
hun = int(input())
ans = float(0)
kakudo = abs(((ji*30 + hun*.6) - (hun*6)))

if kakudo > 180:
    kakudo = kakudo-360
kakudo = abs(kakudo)
print(kakudo)
kakudo = math.cos(math.degrees(kakudo))
print(kakudo)
ans =( chou**2 + tan**2 - 2*chou*tan*kakudo)
print((ans)**0.5)

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
chou = int(input())
tan = int(input())
ji = int(input())
hun = int(input())
ans = float(0)
kakudo = abs(((ji*30 + hun*.6) - (hun*6)))
if kakudo > 180:
    kakudo = kakudo-360

ans = (int(chou)**2 + int(tan)**2 - 2 * int(chou) * int(tan) * math.cos(kakudo))
print(math.sqrt(ans))

Fixed submission:
import math
chou, tan, ji, hun = map(int,input().split())

kakudo = abs(((ji*30 + hun*.5) - (hun*6)))

if kakudo > 180:
    kakudo = 360 - kakudo

kakudo = abs((math.radians(kakudo)))
ans =( chou**2 + tan**2 - 2*chou*tan*math.cos(kakudo))**.5
print(ans)