#include <bits/stdc++.h>
using namespace std;

void hello() {
	cout << "Hello,World!" << endl;	
}

int MAX(int x, int y) {
	if (x > y) {
		return x;
	} else {
		return y;
	}
}

bool prime(int n) {
	if (n < 2) {
		return false;
	} else {
		int nn = sqrt(n);
		for (int i = 2; i <= nn; i++) {
			if (n % i == 0) {
				return false;
			} 
		}
	}
	return true;
}

int main() {
	
	hello();
	
	int a, b;
	cin >> a >> b;
	cout << MAX(a, b) << endl;
	
	int n;
	cin >> n;
	
	cout << prime(n) << endl;
	
	if (prime(n)) {
		cout << "true" << endl; 
	} else {
		cout << "false" << endl; 
	}
	
	cout << (prime(n) ? "true" : "false" ) << endl;
	
	return 0;
}