import math
import re
#This is a solution of the hackerrank problem.
def reduce(s):
    temp = s

    if (type(temp) == 'String'):
#Proceed if type of entry is string
        #Traverse through string

    pass


reduce()

