#연도.월.일을 입력받아 일.월.연도로 출력하기
a,b,c=input().split('.')
print(c,'-',b,'-',a)

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: