#include #include #define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) using namespace atcoder; using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(12); int n; cin >> n; int nw = 1; rep(i, 1, 10) { nw *= i; if (nw == n) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }