#include <iostream>
using namespace std;
int main() {
// Prompt user for input
cout << "Enter four integers separated by spaces: ";
int a, b, c, d;
cin >> a >> b >> c >> d;
// Display entered values (optional for debugging)
cout << "You entered: " << a << " " << b << " " << c << " " << d << endl;
// Calculate sum, average, and product
int sum = a + b + c + d;
double average = sum / 4.0; // Use 4.0 to get decimal average
int product = a * b * c * d;
// Find the smallest number
int smallest = a;
if (b < smallest) smallest = b;
if (c < smallest) smallest = c;
if (d < smallest) smallest = d;
// Find the largest number
int largest = a;
if (b > largest) largest = b;
if (c > largest) largest = c;
if (d > largest) largest = d;
// Output the results
cout << "Sum: " << sum << endl;
cout << "Average: " << average << endl;
cout << "Product: " << product << endl;
cout << "Smallest: " << smallest << endl;
cout << "Largest: " << largest << endl;
// Check even or odd for each number
cout << a << " is " << (a % 2 == 0 ? "even" : "odd") << endl;
cout << b << " is " << (b % 2 == 0 ? "even" : "odd") << endl;
cout << c << " is " << (c % 2 == 0 ? "even" : "odd") << endl;
cout << d << " is " << (d % 2 == 0 ? "even" : "odd") << endl;
return 0;
}