#include <iostream>
#include <string>
using namespace std;
class Book {
    public:
    string title;
    string author;
    
    Book(string t, string a) {
        title = t;
        author = a;
    }
    Book (Book &b){
        title = b.title;
        author=b.author;
        
    }
};
int main() {
    string line1,line2;
    
    getline(cin, line1);
    getline(cin, line2);
    
    string title, author
    
    if (line2.size.() == 0) {
        stringstream ss(line1);
        ss >> title >> author;
        
    } else {
        title = line1;
        author =line2;
    }
    Book b1(title,author);
    Book b2 = b1;
    
    cout << "Title: " <<b2.title<<endl;
    cout << "Author: "<<b2.author<< endl;
    
    return 0;
}