#include<iostream>
#include<string>
using namespace std;
class Book{
    private:
    string title;
    string author;
    
    public:
    Book(string t,string a){
       if(!t.empty() && t.length()<=100){
       title =t;
       }else{
           title ="Invalid Title";
       }
       if(!a.empty() && a.length() <= 100){
           
       }eles{
           author ="Invalid Author";
       }
    }
    Book(const Book &other){
        cout<<"Title:"<< title<<endl;
        cout<<"Author"<<author<<endl;
    }
};
int main(){
    string inputTitle="HarryPotter";
    string inputAuthor="J.K.Rowling";
    Book originalBook(inputTitle,inputAuthor);
    Book copiedBook = originalBook;
    copiedBook.display();
    return 0;
}