# Arup Guha
# 1/11/2013
# Solution to Programming Knights Practice Program Chapter 4 Problem 2
# First Alphabetical String

NUMSTRINGS = 10

def main():

    first = ""

    # Go through each word.
    for i in range(NUMSTRINGS):

        word = input("Enter word "+str(i+1)+".\n")

        # Update if it's the first word or this one is better than what
        # has been seen.
        if first == "" or word < first:
            first = word

    # Print out the first word alphabetically.
    print("The first string alphabetically is ",first,".", sep="")

main()
