Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
361 B
0
Indexable
Never
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
	int a, b, n;
	n = 2;
	cin >> a;
	if (a == 4 || a == 1) cout << "Yes";
	else{
		while (true) {
			n += 1;
			b = n * 2 + (n - 2) * 2;
			if (a == b) {
				cout << "Yes";
				break;
			}
			else if (b > a) {
				cout << "No";
				break;
			}
		}
	}
}