# Joe Schmoe
# threeCharsCh8.py
#
# Description: given a sequence of characters, create a string out
#              of every third character
# Input      : a sequence of characters, one per line, ending with 'z'
# Output     : a string comprised of every third input character,
#              starting with the first.

def main():
    code = ""
    print ("Enter one character per line, ending with 'z'")
    ch = input ("> ")
    count = 0
    
    while ch != "z":
        if (count) % 3 == 0:
            code = code + ch
        ch = input ("> ")
        count = count + 1
    
    print ("The code is:", code)
main()