using System;
public class Test
{
public static void Main()
{
int hours = 15;
int minutes = 20;
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();
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgIGludCBob3VycyA9IDE1OwogICAgICAgIGludCBtaW51dGVzID0gMjA7CgogICAgICAgIE1hdGguRGl2UmVtKGhvdXJzLCAxMiwgb3V0IGhvdXJzKTsKICAgICAgICB2YXIgbWludXRlc0FuZ2xlID0gbWludXRlcyAqIDY7CiAgICAgICAgdmFyIGhvdXJzQW5nbGUgPSBob3VycyAqIDMwICsgKG1pbnV0ZXMgLyAyLjApOwoKICAgICAgICBDb25zb2xlLldyaXRlTGluZShNYXRoLkFicyhob3Vyc0FuZ2xlIC0gbWludXRlc0FuZ2xlKSk7CiAgICAgICAgQ29uc29sZS5SZWFkTGluZSgpOwoJfQp9