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

bool validateDateSize(int day1, int month1, int year1) {
	return true;
}
bool validateDateIntegrity(int day1, int month1, int year1) {
	return day1>0 && month1>0 && year1>0;
}
int main() {
 int day1, month1, year1; 
 char buffer;
 do // This do while loop forces the user to enter a valid date before moving on
    {
        cout << "Enter the lent date in the format dd/mm/yyyy: " << endl;
        cin >> day1 >> buffer >> month1 >> buffer >> year1;
        if(cin.fail())
        {
        	cin.clear();  //reset error flags
        	cin.ignore(numeric_limits<streamsize>::max(),'\n');  // and ignore characters until the next newline
            continue;
        }
    }

    while (!validateDateSize(day1, month1, year1) || !validateDateIntegrity(day1, month1, year1));	// your code goes here
	cout<<"Ok:"<<day1<<" - "<<month1<<" - "<<year1<<endl;
	return 0;
}