in reply to need logic, police edited video

G'day AwsedreswA,

Welcome to the monastery.

Unfortunately, this is all rather vague. You haven't shown any code or specified what you're actually having difficulty with. You indicate no rules for converting "0 (TAB) 0 (TAB)" to "00000 (TAB)" nor for converting "113 (TAB) 0 (TAB) 255" to "255 (TAB) 255 (TAB) 255". Perhaps the guidelines in "How do I post a question effectively?" would help you express more clearly what precisely you want help with.

Having said that, the following may be of use:

When you've written some code, feel free to ask specific questions regarding anything you're encountering difficulties with.

-- Ken