#include <string>
#include <algorithm>
#include <cctype>
#include <iostream>
//...
bool isValidZipCode(const std::string& s)
{
return s.size() == 5 && std::all_of(s.begin(), s.end(), ::isdigit);
}
using namespace std;
int main()
{
cout << isValidZipCode("01234") << "\n";
cout << isValidZipCode("01a34") << "\n";
cout << isValidZipCode("9134") << "\n";
cout << isValidZipCode("91344") << "\n";
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGNjdHlwZT4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKLy8uLi4KYm9vbCBpc1ZhbGlkWmlwQ29kZShjb25zdCBzdGQ6OnN0cmluZyYgcykKewogICByZXR1cm4gcy5zaXplKCkgPT0gNSAmJiBzdGQ6OmFsbF9vZihzLmJlZ2luKCksIHMuZW5kKCksIDo6aXNkaWdpdCk7Cn0KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKCWNvdXQgPDwgaXNWYWxpZFppcENvZGUoIjAxMjM0IikgPDwgIlxuIjsKCWNvdXQgPDwgaXNWYWxpZFppcENvZGUoIjAxYTM0IikgPDwgIlxuIjsKCWNvdXQgPDwgaXNWYWxpZFppcENvZGUoIjkxMzQiKSA8PCAiXG4iOwoJY291dCA8PCBpc1ZhbGlkWmlwQ29kZSgiOTEzNDQiKSA8PCAiXG4iOwp9