The two leaders at the Shore Temple in Mamallapuram on Friday