You are given a sequence of non-negative numbers and you are required to put some of these numbers into a bucket such that:
The product of any two distinct elements in the bucket is not a cube and the numbers in the bucket must be maximum.
Now, your task is to determine the maximum number of elements in the bucket.
Input format
Output format
Print the maximum number of elements in the bucket
Constraints
1≤N≤1e51≤Ai≤1010
The element in the bucket are 1, 2, 3, 5, 6, 7.