{
    protected $title;
    protected $author;
    function __construct($t, $a)
    {
        $this->title = $t;
        $this->author = $a;
    }
    protected abstract function display();
}
class MyBook extends Book
{
    protected $price;
    function __construct($title, $author, $price)
    {
        parent::__construct($title, $author);
        $this->price = $price;
    }
    function display()
    {
        echo "Title: {$this->title}";
        echo "Author: {$this->author}";
        echo "Price: {$this->price}";
    }
}
$title = fgets(STDIN);
$author = fgets(STDIN);
$price = intval(fgets(STDIN));
$novel = new MyBook($title, $author, $price);
$novel->display();