temp = raw_input ("Enter a sentence: ")
if not ((temp.endswith('.')) or (temp.endswith('!')) or (temp.endswith ('?'))):
     print "Not a sentence"

temp = "XXabcXabcabc"
index = temp.find("abc")
print index

temp = temp.replace("abc", "Abc")
print temp
