LIS2: Third try

#6 Error on SPOJ