Hungary , which entered the European Union on May 1 , joins Lithuania as the only countries that have ratified the EU constitution .