class Solution:

    def countAndSay(self, n):
        """
        :type n: int
        :rtype: str
        """
        result = '1'
        for i in range(1, n):
            tmp = ''
            point = 0
            while point < len(result):
                count = 1
                while point < len(result) - 1 and result[point + 1] == result[
                    point]:
                    count = count + 1
                    point = point + 1
                tmp = tmp + str(count) + result[point]
                point = point + 1
            result = tmp
        return result


s = Solution()
print(s.countAndSay(1))

e40225a78b94080c8915e4e81c6190751816e5c9
class Solution:
    <mask token>


<mask token>

class Solution:

    def countAndSay(self, n):
        """
        :type n: int
        :rtype: str
        """
        result = '1'
        for i in range(1, n):
            tmp = ''
            point = 0
            while point < len(result):
                count = 1
                while point < len(result) - 1 and result[point + 1] == result[
                    point]:
                    count = count + 1
                    point = point + 1
                tmp = tmp + str(count) + result[point]
                point = point + 1
            result = tmp
        return result


<mask token>

class Solution:

    def countAndSay(self, n):
        """
        :type n: int
        :rtype: str
        """
        result = '1'
        for i in range(1, n):
            tmp = ''
            point = 0
            while point < len(result):
                count = 1
                while point < len(result) - 1 and result[point + 1] == result[
                    point]:
                    count = count + 1
                    point = point + 1
                tmp = tmp + str(count) + result[point]
                point = point + 1
            result = tmp
        return result


<mask token>
print(s.countAndSay(1))

class Solution:

    def countAndSay(self, n):
        """
        :type n: int
        :rtype: str
        """
        result = '1'
        for i in range(1, n):
            tmp = ''
            point = 0
            while point < len(result):
                count = 1
                while point < len(result) - 1 and result[point + 1] == result[
                    point]:
                    count = count + 1
                    point = point + 1
                tmp = tmp + str(count) + result[point]
                point = point + 1
            result = tmp
        return result


s = Solution()
print(s.countAndSay(1))
