#include<iostream>
using namespace std;
class t
{
public:
t(int m,int d,int y)
{
if(m>0&&m<13)
month = m;
if(d>1&&d<32)
day = d;
if(y>0&&y<3000)
year = y;
}
~t()
{
cout<<"#########################"<<endl;
}
protected:
int month;
int day;
int year;
};
void fn()
{
t *p;
p=new t(1,5,1998);
cout<<"%%%%%%%%%%%%%%5555"<<endl;
delete p;
}
int main()
{
fn();
return 0;
}