#include<bits/stdc++.h>
using namespace std;
bool s(int a){
bool l=0;
int i;
for(i=2;i<=a/2;i++){
if(a%i==0){
l=1;
break;
}}
return l;
}
int main(){
int x,y,z,max=0;
for(x=3;x<100;x++){
for(y=x+1;y<100;y++){
z=(x+y)/2;
if(s(x)==0&&s(y)==0&&s(z)==0){
cout<<x<<" "<<z<<" "<<y<<endl;}}}
return 0;
}
/**************************************************************
Problem: 1144
User: wtq001
Language: C++
Result: Accepted
Time:6 ms
Memory:2072 kb
****************************************************************/