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

class Expr{};
class NumExpr : public Expr {
        public:
            NumExpr( string v );
            string name();
        private:
            int number;
            friend ostream& operator<<(ostream &s, const NumExpr &num);
    };

 NumExpr::NumExpr( string n ) {
        number = 10;
    }
    string NumExpr::name() {
        return "num";
    }
    ostream & operator<<(ostream &s, const NumExpr &num) {
        s << num.number;
        return s;
    }
int main()
{
     //NumExpr obj("hello");
     //cout<<obj;
     

     return 0;
}