import java.util.Scanner;
public class B {
public static void main(String []args) {
Scanner sc=new Scanner(System.in);
String s;
s=sc.next();
getf(s);
}
public static String getf(String s) {
char []a=new char[18];
int count=0;
for(int i=0; i<a.length;i++) {
a=s.toCharArray();
count++;
}
if(count!=18) {
System.out.println("输入错误");
return s;
}
else {
String year=" ";
String month=" ";
String day=" ";
for(int i=6;i<10;i++) {
year=year+a[i]+"";
}
for(int i=10;i<=11;i++) {
month=month+a[i]+"";
}
for(int i=12;i<14;i++) {
day=day+a[i]+"";
}
System.out.println(year+"年"+month+"月"+day+"日");
return s;
}
}
}