#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,i,j,s,z;
    for(i=1;i<=7;i++){
        for(j=0;j<=10;j++){
            s=4*i+6*j;
            z=(i)*(i+j)*(i+j+j)*(i+j+j+j);
            if(s==26&&z==880){
                cout<<i<<" "<<i+j<<" "<<i+j+j<<" "<<i+j+j+j<<endl;
            }
        }
    }
    return 0;
}
/**************************************************************
	Problem: 1251
	User: lijinkai
	Language: C++
	Result: Accepted
	Time:4 ms
	Memory:2072 kb
****************************************************************/