exit when rotation complete
print distinct underliers