#include <iostream.h>
using namespace std;

int main()
{
	int number_of_patrons;
	int table_capacity;
	double tables_needed;
	
	int tables_filled, extra_people;
	
	cout <<"Your restaurant has lots of tables, each holding the same\n"
	     << "number of people.  You want to fill all the tables as full\n"
	     << "as you can.\n"
	     <<"Any people not at a full table are turned away!\n\n";
	     
	cout << "How many people are signed up for tonight? ";
	cin >> number_of_patrons;
	cout << "How many people will we put at each table? ";
	cin >> table_capacity;
	
	tables_needed = (1.0*number_of_patrons/table_capacity);
	
	tables_filled= number_of_patrons/table_capacity;
	extra_people= number_of_patrons % table_capacity;
	
	
	cout << "You will need "<<tables_needed<<" tables.\n";
	cout <<"That's "<<tables_filled<<" full tables, with "
			<< extra_people<<" people to turn away.\n\n";
	return 0;
}
