// 111.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "iostream.h"
#include "string.h"
#define max 100
char k[5][5];
char k1[25]={'a','b','c','d','e','f','g','h','i','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
void miyao()
{
int i=0,j=0,count=0;
int m=0,n=0;
char s,ss;
while(s!='\n')
{
int i=0,j=0,z=1;
int count=0;
while(s!='\n')
{
cin.get(s);
if(s=='j')
s='i';
i=count;
while(i<26)
{
if(s!=k1[i])
i++;
else
{
if(i==count)
{
count++;
break;
}
ss=k1[i];
for(j=i;j>count;j--)
k1[j]=k1[j-1];
k1[count]=ss;
count++;
}
}
}
}
for(i=0;i<25;i++)
{
if(i!=0&&i%5==0)
{
m++;
n=0;
}
k[m][n]=k1[i];
n++;
}
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
cout<<k[i][j]<<" ";