ENTRY_POINT = 'iscube'

FIX = """
Rmove part of docstring which doesn't make sense.
"""

#[PROMPT]

def iscube(a):
    '''
    Write a function that takes an integer a and returns True 
    if this ingeger is a cube of some integer number.
    Note: you may assume the input is always valid.
    Examples:
    iscube(1) ==> True
    iscube(2) ==> False
    iscube(-1) ==> True
    iscube(64) ==> True
    iscube(0) ==> True
    iscube(180) ==> False
    '''
#[SOLUTION]
    a = abs(a)
    return int(round(a ** (1. / 3))) ** 3 == a
#[CHECK]
def check(candidate):

    # Check some simple cases
    assert candidate(1) == True, "First test error: " + str(candidate(1))      
    assert candidate(2) == False, "Second test error: " + str(candidate(2))  
    assert candidate(-1) == True, "Third test error: " + str(candidate(-1))      
    assert candidate(64) == True, "Fourth test error: " + str(candidate(64))  
    assert candidate(180) == False, "Fifth test error: " + str(candidate(180))  
    assert candidate(1000) == True, "Sixth test error: " + str(candidate(1000))      


    # Check some edge cases that are easy to work out by hand.
    assert candidate(0) == True, "1st edge test error: " + str(candidate(0))

