#include #include using namespace std; int main() { double L; cin >> L; double rad = L * M_PI / 180.0; // 角度をラジアンに変換 double tanL = tan(rad); // tanLが有理数であるかどうかを判断する if (tanL == floor(tanL)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }