using System.Collections.Generic;
public static void Main()
string cur="", s = "Hello World\r\nhlw\r\nriad\r\nyou";
List<string> ans = new List<string>();
for(int i=0; i<s.Length; i++)
string tmp = s.Substring(i, 4);
Console.WriteLine("Debug "+i);
else cur+=s[i].ToString();
if(cur.Length!=0)ans.Add(cur);
Console.WriteLine("List size: "+ans.Count);
Console.WriteLine("Right Aligned:");
foreach(string p in ans)Console.WriteLine((new string(' ', width-p.Length))+p);
Console.WriteLine("Central Aligned:");
int space = (width-p.Length)/2;
Console.WriteLine((new string(' ', space)) + p + new string(' ',width-space));