# -*- coding: utf-8 -*-

"""
aaaaaaaaaa
aabcaabcd
abbbabbbcabbbabbbc

#iterate 1~int(n/2)?
"""
f = open("compression.txt", 'r')
#input always valid.

#at beginning, until number ends or letter ends.

def compression(s):
    for i in range(len(s)):


for i in range(3):
    s_1 = f.readline().strip()
    print(compression(s_1))
