The Hungarian parliament on Thursday elected Katalin Novak as the country's first female president for a five-year term.