icpc2007dA in Elixir/Perl6