// Geoff Hagopian -- PPP3 Drill
#include "std_lib_facilities.h";
using namespace std;

int main() {
	string first_name, second_name, friend_first, friend_last;
	int age;
	cout << "Enter your first and last names: ";
	cin >> first_name >> second_name;
	cout << "Enter the name of a friend: ";
	cin >> friend_first >> friend_last;
	cout << "Enter your age: ";
	cin >> age;
	if (age < 0 || age > 120)
		error("That's patently absurd!");
	cout << "Dear " << first_name << " " << second_name << ",\n\n"
		<< "\tWe thank for your interest in working for Acme Motors,\n"
		<< "however, we regret to inform you that your services are not\n"
		<< "required at this time.\n\n"
		<< "\tHowever, your friend, " << friend_first << " " 
		<< friend_last << " did get a postion!\n\n"
		<< "Yours sincerely,\n"
		<< "Mr. Headmaster,\nHuman Resources,\nAcme Motors";
}