#include<iostream>
using namespace std;
int main() {
	int n;
	cout << "n = ";
	cin >> n;
	if (n>0) {
		double max;
		cout << "Number" << 1 << " = ";
		cin >> max;
		for (int i=1; i<n; i++) {
			double x;
			cout << "Number" << i+1 << " = ";
			cin >> x;
			if (x>max) {
				max = x;
			}
		}
		cout << "Maximum = " << max;
	} else {
		cout << "Error: n has to an integer greater than zero!";
	}	
	return 0;
}
