#include <iostream>
#include <limits>
using namespace std;

int main() {
	const auto secret = 10;
	auto a = 0;
	
	cout << "Guess the secret num between 1-10 + 3 : ";
	cin >> a;
	
	while (a != secret) {
	    if (a == 0) {
	        cin.clear();
	        cin.ignore(std::numeric_limits<streamsize>::max(), '\n');
	        cout << "Please enter a valid number between 1-10 + 3 : ";
	    }
	    else if (a < secret) {
	        cout << "Secret num is smaller!!\nGuess the secret num between 1-10 + 3 : ";
	    }
	    else if (a < secret) {
	        cout << "Secret num is greater !!\nGuess the secret num between 1-10 + 3 : ";
	    }
	    a = 0;
	
	    cin >> a;
	}
}