#include <iomanip>
#include <iostream>
#include <ostream>
class Date
{
int day, month, year;
public:
Date() : day(1), month(1), year(1970)
{
}
Date(int d, int m, int y) : day(d), month(m), year(y)
{
}
friend std::ostream & operator << (std::ostream &, const Date &d);
};
std::ostream & operator << (std::ostream &os, const Date &d)
{
os << std::setw(6) << "Day" << std::setw(10) << "Month" << std::setw(10) << "Year" << '\n';
os << std::setw(30) << std::setfill('-') << '\n' << std::setfill(' ');
os << std::setw(6) << d.day << std::setw(10) << d.month << std::setw(10) << d.year << std::flush;
return os;
}
int main()
{
Date date(7, 1, 2001);
std::cout << date << '\n';
}
I2luY2x1ZGUgPGlvbWFuaXA+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPG9zdHJlYW0+CgpjbGFzcyBEYXRlCnsKICAgIGludCBkYXksIG1vbnRoLCB5ZWFyOwoKcHVibGljOgoKICAgIERhdGUoKSA6IGRheSgxKSwgbW9udGgoMSksIHllYXIoMTk3MCkKICAgIHsKICAgIH0KCiAgICBEYXRlKGludCBkLCBpbnQgbSwgaW50IHkpIDogZGF5KGQpLCBtb250aChtKSwgeWVhcih5KQogICAgewogICAgfQoKICAgIGZyaWVuZCBzdGQ6Om9zdHJlYW0gJiBvcGVyYXRvciA8PCAoc3RkOjpvc3RyZWFtICYsIGNvbnN0IERhdGUgJmQpOwp9OwoKc3RkOjpvc3RyZWFtICYgb3BlcmF0b3IgPDwgKHN0ZDo6b3N0cmVhbSAmb3MsIGNvbnN0IERhdGUgJmQpCnsKICAgIG9zIDw8IHN0ZDo6c2V0dyg2KSA8PCAiRGF5IiA8PCBzdGQ6OnNldHcoMTApIDw8ICJNb250aCIgPDwgc3RkOjpzZXR3KDEwKSA8PCAiWWVhciIgPDwgJ1xuJzsKICAgIG9zIDw8IHN0ZDo6c2V0dygzMCkgPDwgc3RkOjpzZXRmaWxsKCctJykgPDwgJ1xuJyA8PCBzdGQ6OnNldGZpbGwoJyAnKTsKICAgIG9zIDw8IHN0ZDo6c2V0dyg2KSA8PCBkLmRheSA8PCBzdGQ6OnNldHcoMTApIDw8IGQubW9udGggPDwgc3RkOjpzZXR3KDEwKSA8PCBkLnllYXIgPDwgc3RkOjpmbHVzaDsKICAgIHJldHVybiBvczsKfQoKaW50IG1haW4oKQp7CiAgICBEYXRlIGRhdGUoNywgMSwgMjAwMSk7CgogICAgc3RkOjpjb3V0IDw8IGRhdGUgPDwgJ1xuJzsKfQo=