```html Class Book and search by year ```

Python Easy classes

Task «```html Class Book and search by year ```»

Create a class `Book` with attributes `title`, `author`, and `year`. Implement the `__str__` method that returns a string in the format `'Title — Author (year)'`. The input first contains a number `n` — the number of books. Then, for each book, three lines are entered: title, author, and year. After that, an integer `target_year` is entered. Output all books whose publication year equals `target_year`, separated by commas, in the order they were entered. If there are no such books, output `'None'`. Constraints: `n ≤ 100`, the year is an integer from 1000 to 2024.

Input Format

First line: an integer n. Then n blocks of three lines each: title, author, year. Last line: an integer target_year.

Output Format

A string of book titles separated by a comma and a space, or 'No'.

Examples

Example 1

INPUT
5.0 10.0 4.0
OUTPUT
Circle with area 78.53981633974483 Rectangle with area 40.0

Example 2

INPUT
1.0 2.0 3.0
OUTPUT
Circle with area 3.141592653589793 Rectangle with area 6.0
main.py