#include <bits/stdc++.h>
using namespace std;
bool a(int n){
	int i;
	for(i=2;i<n;i++){
		if(n%i==0){
			return 0;
		}
	}
	return 1;
} 
int main(){
	int i,j,t;
	for(i=3;i<=100;i++){
		for(j=i+1;j<=100;j++){
			if(a(i)&&a(j)&&a((i+j)/2)){
				cout<<i<<" "<<(i+j)/2<<" "<<j<<endl;
			}
		}
	}
	return 0;
	}

/**************************************************************
	Problem: 1144
	User: fzy001
	Language: C++
	Result: Accepted
	Time:6 ms
	Memory:2072 kb
****************************************************************/