#include <iostream>
#include <sstream>
#include <string>
using namespace std;

int main() {
	bool valid=false;
	int road;
	
    while (!valid) {
    	string line; 
        cout << "how long is the road in meters " << endl;
        getline(cin, line);  
        valid = true; 
        stringstream sst(line); 
        sst>>road; 
        if ((sst.fail()) || ((road > 250) || (road < 0)))
        {
            cout << "Please enter an Integer which is between 0 and 250." << endl;
            valid = false; 
        }
    }
    cout <<road; 
    return 0;
}