import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String str = sc.next();
String[] chs = str.split("/");
int m = Integer.parseInt(chs[0]);
int d = Integer.parseInt(chs[1]);
int y = Integer.parseInt(chs[2]);
System.out.println(y+String.format("%02d",m)+String.format("%02d",d));
}
}