Проверьте, является ли номер идеальный куб в Python

x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)
Strange Seal