// editor2
#include <iostream>
#include <string>
using namespace std;

class Car
{
    private:
    string cm,ct;
    int yr;
    
    public:
    Car(string cm, string ct, int yr)
    {
        this->cm = cm;
        this->ct = ct;
        this->yr = yr;
    }
    
    void display()
    {
        cout << cm << endl << ct << endl << yr << endl;
    }
};

int main()
{
    string cm, ct;
    int yr;
    
    cin >> cm >> ct >> yr;
    
    if(cm.size() + ct.size() >= 2 && cm.size() + ct.size() <= 200)
    {
        Car *obj = new Car(cm, ct, yr);
        obj.display();
    }
    else
    {
        cout << "Invalid input";
    }
    
    return 0;
}