```python
import collections
mx = collections.deque(maxlen=num)
my = collections.deque(maxlen=num)
```