# import sys because we need to read and write data to STDIN and STDOUT
import sys
# reading entire line from STDIN (standard input)
for line in sys.stdin:
# to remove leading and trailing whitespace
line = line.strip()
# split the line into words
words = line.split()
# we are looping over the words array and printing the word
# with the count of 1 to the STDOUT
for word in words:
# write the results to STDOUT (standard output);
# what we output here will be the input for the
# Reduce step, i.e. the input for reducer.py
print(f"{word,1}")
CiMgaW1wb3J0IHN5cyBiZWNhdXNlIHdlIG5lZWQgdG8gcmVhZCBhbmQgd3JpdGUgZGF0YSB0byBTVERJTiBhbmQgU1RET1VUIAppbXBvcnQgc3lzIAogIAojIHJlYWRpbmcgZW50aXJlIGxpbmUgZnJvbSBTVERJTiAoc3RhbmRhcmQgaW5wdXQpIApmb3IgbGluZSBpbiBzeXMuc3RkaW46IAogICAgIyB0byByZW1vdmUgbGVhZGluZyBhbmQgdHJhaWxpbmcgd2hpdGVzcGFjZSAKICAgIGxpbmUgPSBsaW5lLnN0cmlwKCkgCiAgICAjIHNwbGl0IHRoZSBsaW5lIGludG8gd29yZHMgCiAgICB3b3JkcyA9IGxpbmUuc3BsaXQoKSAKICAgICAgCiAgICAjIHdlIGFyZSBsb29waW5nIG92ZXIgdGhlIHdvcmRzIGFycmF5IGFuZCBwcmludGluZyB0aGUgd29yZCAKICAgICMgd2l0aCB0aGUgY291bnQgb2YgMSB0byB0aGUgU1RET1VUIAogICAgZm9yIHdvcmQgaW4gd29yZHM6IAogICAgICAgICMgd3JpdGUgdGhlIHJlc3VsdHMgdG8gU1RET1VUIChzdGFuZGFyZCBvdXRwdXQpOyAKICAgICAgICAjIHdoYXQgd2Ugb3V0cHV0IGhlcmUgd2lsbCBiZSB0aGUgaW5wdXQgZm9yIHRoZSAKICAgICAgICAjIFJlZHVjZSBzdGVwLCBpLmUuIHRoZSBpbnB1dCBmb3IgcmVkdWNlci5weSAKICAgICAgICBwcmludChmInt3b3JkLDF9Iik=