Justice Sen sends resignation in writing to President