#include <iostream>
#include <string>
using namespace std;

int main(){
	int n;
	cin >> n;
	string s;
	while(cin >> s){
		size_t p = s.find('.');
		if(p != string::npos && s.size() - p >= 7){
			throw 0;
		}
	}
}