public class Date {
    private int annee;
    private int mois;
    private int jour;

    public Date(int annee, int mois, int jour) {
        this.annee = annee;
        this.mois = mois;
        this.jour = jour;
    }

    public String toString() {
        return String.format("%04d-%02d-%02d", annee, mois, jour);
    }

    public static void main(String[] args) {
        Date date = new Date(2024, 2, 3); // Exemple de date
        System.out.println(date); 
    }
}
