#include<iostream>
#include<string>

class Book {
    private:
    std::string title;
    std::string author;
    
    public:
    Book(std::string t, std::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 {
        std::cout << "Title: " << title << std::endl;
        std::cout << "Author: " << author << std::end;
    }
};
int main() {
    Book b1("Harry Potter", "J.K. Rowling");
    b2 = b1;
    b2.dispaly();
    return 0;
}