Input (grade 6): Spain has won the Davis Cup four times (2000, 2004, 2008 and 2009), and finished as runner-up three times (1965, 1967, 2003).
Output (grade 8): Spain has won the Davis Cup four times (2000, 2004, 2008 and 2009), and finished at second position three times (1965, 1967, 2003).