Code:
input file:
AD,00,--,---,---,---,---,---,---,--,--,---
AM,000,---,---,---,---,---,---
AR, ,---,--,---,---
AA,---,---,---,---
AT,---
AU,---,---,---
AS,---,---
AP,---,---,---
AI,---
AD,00,---,---,---, ,---,---,---,---,---,---
AM,000,---,---,---
AR, ,---,---,---
AS,---,---
AD,01,---,---,---,---,---,---,---,---,---
AA,001,---,---
AU,---,---,---
AD,00,---,---,---,---,---,---,---,---,---,---
AP,---,---,---,---,---,---,---
AD,01,---,---,---,---,---
AS,---,---,---,---
AI,---,---