using System;
public class Test
{
public static void Main()
{
int hours = 23;
int minutes = 5;
Math.DivRem(hours, 12, out hours);
var minutesAngle = minutes * 6;
var hoursAngle = hours * 30 + (minutes / 2.0);
Console.WriteLine(Math.Abs(hoursAngle - minutesAngle));
Console.ReadLine();
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgIGludCBob3VycyA9IDIzOwogICAgICAgIGludCBtaW51dGVzID0gNTsKCiAgICAgICAgTWF0aC5EaXZSZW0oaG91cnMsIDEyLCBvdXQgaG91cnMpOwogICAgICAgIHZhciBtaW51dGVzQW5nbGUgPSBtaW51dGVzICogNjsKICAgICAgICB2YXIgaG91cnNBbmdsZSA9IGhvdXJzICogMzAgKyAobWludXRlcyAvIDIuMCk7CgogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKE1hdGguQWJzKGhvdXJzQW5nbGUgLSBtaW51dGVzQW5nbGUpKTsKICAgICAgICBDb25zb2xlLlJlYWRMaW5lKCk7Cgl9Cn0=