A Weird Device | CodeChef