#include using namespace std; bool win[1010]; int main() { win[1] = win[3] = true; for (int i = 4; i < 1010; i++) { for (int j = 1; j <= 3; j++) { if (win[i - j] == false) win[i] = true; } } int n; cin >> n; cout << (win[n] ? "Yes" : "No") << endl; }