Class Book: creation and output of information

Kotlin Easy classes

Task «Class Book: creation and output of information»

Create a class Book with fields title, author, and year. Implement a main function that reads three strings: title, author, and year. Create an object of the Book class with this data and output information about the book in the format: «Title: <title>, Author: <author>, Year: <year>». It is guaranteed that the year is an integer.

Input Format

Three lines: the first line is the title (string), the second is the author (string), the third is the year of publication (integer).

Output Format

One line: "Title: <title>, Author: <author>, Year: <year>".

Examples

Example 1

INPUT
2 3
OUTPUT
Название: 2, Автор: 3, Год: 8
main.kt