```html Class Book with an information output method ```
Swift
Easy
classes
Task «```html Class Book with an information output method ```»
Create a class `Book` with three properties: `title`, `author`, and `year`. Implement a method `displayInfo()` that outputs information about the book in the format: "Title: <title>, Author: <author>, Year: <year>". Input data: three strings — title, author, and year. Call the method to display the output.
Input Format
Three lines: the first is the book title, the second is the author, the third is the year of publication (an integer).
Output Format
String with book information in the specified format.
Examples
Example 1
INPUT
Война и мир
Лев Толстой
1869
OUTPUT
Название: Война и мир, Автор: Лев Толстой, Год: 1869
Example 2
INPUT
1984
Джордж Оруэлл
1949
OUTPUT
Название: 1984, Автор: Джордж Оруэлл, Год: 1949
main.swift