Mars Exploration

  • + 0 comments

    for Python3 Platform

    def marsExploration(s):
        og_s = "SOS" * (len(s)//3)
        
        return len([(m, n) for m, n in zip(s, og_s) if m != n])
    
    s = input()
    
    res = marsExploration(s)
    
    print(res)