#include using namespace std; int main() { int x,y; cin >> x >> y; // 12hr --> 12*60 rotations int e = x%30 * (360/30); if(e == y) { cout << "yes\n"; } else cout << "no\n"; }