output converted sx for pes
calculate until n=9 for pes