def ring_level(num):
    """Return the side lenth, level, and max value of a spiral ring of consecutive ints"""
    max_value = 1
    level = 0
    side_len = 1
    while max_value < num:
        level = level + 1
        side_len = (level * 2) + 1
        max_value = side_len + side_len * (side_len - 1)
    return side_len, level, max_value