#include<iostream>
#include<string>
using namespace std;
class Book {
    private:
    string title;
    string author;
    
    public:
    Book(string t, string a) {
        if (t.length() < 100) title = t;
        else title = t.substr(0, 99);
        if(a.length() < 100) author = a;
        else author = a.substr(0, 99);
    }
    Book(const Book &other) {
        title = other.title;
        author = other.author;
    }
    void display() const {
        cout << "Title: " << title << std::endl;
        cout << "Author: " << author << std::end;
    }
};
int main() {
    Book b1("Harry Potter", "J.K. Rowling");
    b2 = b1;
    b2.dispaly();
    return 0;
}