#include<iostream>
using namespace std;
class book{
private:
int qu;
int price;
public:
book(int q,int p)
{qu=q;
price=p;
}
void show_money()
{
cout<<qu*price<<endl;
}
};
int main()
{
book b[5]={book(1,10),book(2,20),book(3,30),book(4,40),book(5,50)};
int i;
for(i=0;i<5;i++)
b[i].show_money();
return 0;
}