Friday the thirteenth's solution