#include <iostream>
#include <vector>
#include <conio.h>
#include <string>
#include <algorithm>
using namespace std;
class GT_cls
{
public:
GT_cls(size_t val = 0):s_val(val){ };
bool operator()(const string& s)
{
return s.size()>=s_val;
}
~GT_cls(){};
private:
string::size_type s_val;
};
int main()
{
vector<string> v_str;
for (size_t i=0;i<5;i++)
{
string x;
cin>>x;
v_str.push_back(x);
}
for (vector<string>::iterator it = v_str.begin(); it != v_str.end();it++)
{
cout<<*it<<endl;
}
vector<string>::size_type sz = count_if(v_str.begin(),v_str.end(),GT_cls(2));
cout<<sz;
getch();
return 0;
}