<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> class Solution ( object ) : <EOL> def solve ( self , cipher ) : <EOL> """<STR_LIT>""" <EOL> return len ( reduce ( lambda x , y : x & y , [ set ( list ( elt ) ) for elt in cipher ] ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> import sys <EOL> f = open ( "<STR_LIT>" , "<STR_LIT:r>" ) <EOL> number = int ( f . readline ( ) . strip ( ) ) <EOL> cipher = [ ] <EOL> for t in xrange ( number ) : <EOL> cipher . append ( f . readline ( ) . strip ( ) ) <EOL> s = "<STR_LIT>" % ( Solution ( ) . solve ( cipher ) ) <EOL> print s , </s>
