<gh_stars>0
class Solution:
    """
    @param n: An integer
    @return: A list of strings.
    """
    def fizzBuzz(self, n):
        ans = []
        
        for i in range(1, n + 1):
            if i % 3 == 0 and i % 5 == 0:
                ans.append("fizz buzz")
            elif i % 3 == 0:
                ans.append("fizz")
            elif i % 5 == 0:
                ans.append("buzz")
            else:
                ans.append(str(i))
                
        return ans

class Solution:
    """
    @param n: An integer
    @return: A list of strings.
    """
    def fizzBuzz(self, n):
        ans = []
        
        for i in range(1, n + 1):
            if i % 3 == 0 and i % 5 == 0:
                ans.append("fizz buzz")
            elif i % 3 == 0:
                ans.append("fizz")
            elif i % 5 == 0:
                ans.append("buzz")
            else:
                ans.append(str(i))
                
        return ans
@param n: An integer     @return: A list of strings.