#include <iostream>
using namespace std;
struct books {
string name;
string author;
int year;
} book;
void insert(string name, string author, int year) {
book.name = name;
book.author = author;
book.year = year;
}
int main() {
string name, author;
int year;
printf("Enter name of the book:");
cin >> name;
printf("Enter author of the book:");
cin >> author;
printf("Enter year of the book:");
cin >> year;
insert(name, author, year);
cout << "Book name: " << book.name << endl;
cout << "Book author: " << book.author << endl;
cout << "Book year: " << book.year << endl;
return 0;
}