#include <iostream>
#include <cmath>
using namespace std;
float otvet(int h, int m)
{
float x = (m / 60.0f) * 360.0f;
float hh = (h / 12.0f) * 360.0f;
float add = (m/60.0f)*1/12.0f*360.0f;
return fabs(hh + add - x);
}
int main() {
cout << otvet(3, 15) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpmbG9hdCBvdHZldChpbnQgaCwgaW50IG0pCnsKICAgIGZsb2F0IHggPSAobSAvIDYwLjBmKSAqIDM2MC4wZjsKICAgIGZsb2F0IGhoID0gKGggLyAxMi4wZikgKiAzNjAuMGY7CiAgICBmbG9hdCBhZGQgPSAobS82MC4wZikqMS8xMi4wZiozNjAuMGY7CgogICAgcmV0dXJuIGZhYnMoaGggKyBhZGQgLSB4KTsKfQoKaW50IG1haW4oKSB7Cgljb3V0IDw8IG90dmV0KDMsIDE1KSA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0=