#include <iostream>
using namespace std;
int main()
{
const string pyh = "潘阳湖";
const string dth = "洞庭湖";
const string th = "太湖";
const string hzh = "洪泽湖";
string a[4] = {dth,th,pyh,hzh};
string b[4] = {hzh,pyh,th,dth};
string c1[4] = {th,pyh,dth,hzh};
string c2[4] = {pyh,th,dth,hzh};
string d[4] = {pyh,hzh,dth,th};
string array[4] = {pyh, dth, th, hzh};
string result[4];
for (int i = 0; i < 4; i ++)
{
result[0] = array[i];
for (int j = 0; j < 4; j ++)
{
if (i == j)continue;
result[1] = array[j];
for (int k = 0; k < 4; k ++)
{
if (i == k || j == k)continue;
result[2] = array[k];
for (int l = 0; l < 4; l ++)
{
if (i ==l || j == l || k == l)continue;
result[3] = array[l];
int aint = (a[i] == result[i]) + (a[j] == result[j]) + (a[k] == result[k]) + (a[l] == result[l]);
int bint = (b[i] == result[i]) + (b[j] == result[j]) + (b[k] == result[k]) + (b[l] == result[l]);
int c1int = (c1[i] == result[i]) + (c1[j] == result[j]) + (c1[k] == result[k]) + (c1[l] == result[l]);
int c2int = (c2[i] == result[i]) + (c2[j] == result[j]) + (c2[k] == result[k]) + (c2[l] == result[l]);
int dint = (c2[i] == result[i]) + (d[j] == result[j]) + (d[k] == result[k]) + (d[l] == result[l]);
if (aint == 1 && bint == 1 && (c1int == 1 || c2int == 1) && dint == 1)
{
cout<<i<<j<<k<<l<<endl;
cout<<result[i]<<result[j]<<result[k]<<result[l]<<endl;
}
}
}
}
}
}