#include using namespace std; int main(){ double a,b,h,m; cin>>a>>b; if(a>=12){ a-=12; } h=a*30+(b/60)*30; if(b==0){ b+=60; } m=b*6; if(h=3600){ ans-=3600; } cout<