#include <iostream>
#include <string>
using namespace std;

  class A{
      public:
      void show(string title,string author){
          cout << "Title: "<< title <<endl;
          cout << "Author: "<< author;
         
      }
  };
  int main(){
      
      string tittle,author;
      getline(cin,tittle);
      getline(cin,author);
      
      if(!title.empty() &&title.back()=='\r')title.pop_back();
      if(!title.empty() &&author.back()=='\r')author.pop_back();
      
      A obj;
      obj.show(tittle,author);
      return 0;
  }