import urllib.request

def readFASTAurl(id):
    response = urllib.request.urlopen('http://www.uniprot.org/uniprot/'+id+'.fasta')
    return response.read().decode()

def ReadFASTAFile(filename):
    d = dict()
    with open(filename) as f:
        line = f.readline().strip()
        while line != '':
            name, text = line[1:], ''
            line = f.readline().strip()
            while line != '' and line[0] != '>':
                text += line
                line = f.readline().strip()
            d[name] = text
    return d

d = ReadFASTAFile('gc-text.txt')
for k in d:
    print(k, len(d[k]))


id_s = input()
print(readFASTAurl(id_s))