#include<iostream>
#include <string>
using namespace std ;
class Car {
    private:
    string make , model ;
    int year;
    public:
    void gett(){
        getline(cin,make);
        getline(cin,mode);
        if(!make.empty() && make.back() == '\r')make.pop_back();
        if(!mode.empty() && mode.back() == '\r')mode.pop_back();
    }
    void fun(){
        
        cout<<make<<endl;
        cout<<model<<endl;
        cout<<year<<endl;
    }
    
};
int main(){
    Car obj;
    obj.gett();
    obj.fun();
}