cf 247div2 - lots of wrong submissions, atleast solved C phew