A date with dashes

Print a date with dashes between its parts.

What to build

One line built from three values. The lines that read them are already written for you.

Requirements

  • Print the year, the month and the day, in that order.
  • Separate them with -, using sep, and with no spaces.

Input

Three lines: the day, the month and the year.

Output

One line: YEAR-MONTH-DAY.

Constraints

Each part is printed exactly as it was typed.

Example

Input:

09
11
2026

Output:

2026-11-09

Why it works

sep replaces the space that print would normally put between its values, so one call builds the whole date.

Examples

Example 1 · Input
09
11
2026
Expected output
2026-11-09
Example 2 · Input
1
1
2000
Expected output
2000-1-1

Prompts inside input() are ignored when checking, so input("n: ") is fine.

Hints

Hint 1

print can take three values.

Hint 2

sep="-" puts a dash between them.

Solution

Show one correct solution (try it yourself first)
day = input()
month = input()
year = input()
print(year, month, day, sep="-")

Lesson: Your first program →