who served the longest term as president in india