using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
using (StreamReader sr = new StreamReader(@"inputfile.txt"))
{
var tr = (sr as TextReader);
var ss = new List<string>();
while (!sr.EndOfStream)
{
var s = tr.ReadLine();
if (!ss.Contains(s))
{
ss.Add(s);
}
}
ss.ForEach(s => Console.WriteLine(s));
}
//Console.ReadLine();
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkxpbnE7CnVzaW5nIFN5c3RlbS5UZXh0Owp1c2luZyBTeXN0ZW0uSU87CgpuYW1lc3BhY2UgQ29uc29sZUFwcGxpY2F0aW9uMgp7CiAgICBjbGFzcyBQcm9ncmFtCiAgICB7CiAgICAgICAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgICAgIHsKICAgICAgICAgICAgdXNpbmcgKFN0cmVhbVJlYWRlciBzciA9IG5ldyBTdHJlYW1SZWFkZXIoQCJpbnB1dGZpbGUudHh0IikpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIHZhciB0ciA9IChzciBhcyBUZXh0UmVhZGVyKTsKICAgICAgICAgICAgICAgIHZhciBzcyA9IG5ldyBMaXN0PHN0cmluZz4oKTsKICAgICAgICAgICAgICAgIHdoaWxlICghc3IuRW5kT2ZTdHJlYW0pCiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgdmFyIHMgPSB0ci5SZWFkTGluZSgpOwogICAgICAgICAgICAgICAgICAgIGlmICghc3MuQ29udGFpbnMocykpCiAgICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICAgICBzcy5BZGQocyk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQoKICAgICAgICAgICAgICAgIHNzLkZvckVhY2gocyA9PiBDb25zb2xlLldyaXRlTGluZShzKSk7CgogICAgICAgICAgICB9CiAgICAgICAgICAgIC8vQ29uc29sZS5SZWFkTGluZSgpOwogICAgICAgIH0KICAgIH0KfQo=