#include<bits/stdc++.h>
using namespace std;
string s,t;
int now=0;
int main()
{
ifstream list("list");
int a;
while(getline(list,s))
{
cout<<s<<"\n";
now++;
if(now%5==0) scanf("%d",&a);
}
printf("\n\n");
list.close();
return 0;
}
#include<bits/stdc++.h>
using namespace std;
string s,t;
int now=0;
int main()
{
ifstream list("list");
int a;
while(getline(list,s))
{
cout<<s<<"\n";
now++;
if(now%5==0) scanf("%d",&a);
}
printf("\n\n");
list.close();
return 0;
}