# FindAndRemove
#   locates and removes the leftmost occurrence of a character in a string.
# inputs: s - the string to be searched
#         c - the character to be removed
# output: a copy of  s  without its first occurrence of c
#           (if  c  is not present in  s,  then s is printed

s = raw_input("Type a string: ")
c = raw_input("Type a single char to search for: ")

count = 0
while count != len(s) :
    # assert: have examined  s[0] s[1] ..upto.. s[count-1],
    #   and none of them are  c
    
    if s[count] == c :
        break
    else :
        count = count + 1

# Here, we have exited the loop.  This happened because either
#  (1)  c == letter,  meaning that  s[count] == c
#  (2)  c  was not found in  s,  so  count == len(s)

if  count != len(s) :
    s = s[:count] + s[count + 1:]    # remove it

print s

print
raw_input("Press Enter to finish")