#include using namespace std; using ll = long long; using Graph = vector>; #define ALL(x) (x).begin(), (x).end() #define REP(i ,n) for(int i = 0; i < (int)(n); i++) #define pb push_back typedef vectorvint; typedef vectorvll; template istream &operator>>(istream &is, vector &vec){ for (auto &v : vec) is >> v; return is; } templateinline bool chmin(A &a,const B &b){if(a>b){a=b;return true;}else{return false;}} templateinline bool chmax(A &a,const B &b){if(a> A >> B; if(A >= 12)A -= 12; double ans = 0.0; double sub = 30*A+B/2-6*B; if(sub < 0){ sub += 360; } ans = sub*120/11; cout << (int)ans << endl; }