#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# http://www.pythonchallenge.com/pc/def/equality.html
import re
# the content of equality.txt is from the
# source of equality.html
with open('equality.txt', 'r') as file1:
content = file1.read()
# we just want the small letter
print ''.join(re.findall('[^A-Z]+[A-Z]{3}([a-z])[A-Z]{3}[^A-Z]+', content))