KÃ hler defeated Gesine Schwan on the first ballot by 604 votes to 580 . 20 votes were cast for minor candidates , while one elector was absent because of a heart attack . KÃ hler defeated Gesine Schwan on the first ballot by 604 votes to 580 ; 20 votes were cast for minor candidates , while one elector was absent because of a heart attack .