How to convert bestsqs.out to POSCAR in DIRECT system?

Any expert in this form, could you please help me to convert mcsqs output "bestsqs.out" to POSCAR?

Hi,
Please check this link:
https://github.com/changning/sqs2poscar