def fizzbuzz(a, b, n):
    """Takes integers a, b, and n. Returns a string respective to the fizzbuzz
    specification listed in the header.
    """
    if n % (a*b) == 0:
        return 'FB'
    elif n%a == 0:
        return 'F'
    elif n%b == 0:
        return 'B'
    else: return str(n)