import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Scanner; public class Main { public static void main(String[] args) { Calendar calendar = Calendar.getInstance(); Scanner scan = new Scanner(System.in); String s = scan.next(); scan.close(); int year = Integer.parseInt(s.substring(0, 4)); String month = s.substring(5, 7); String day = s.substring(8, 10); if(month.charAt(0) == '0'){ month = month.substring(1, 2); } if(day.charAt(0) == '0'){ day = day.substring(1, 2); } SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); calendar.set(year, Integer.parseInt(month) - 1, Integer.parseInt(day)); //System.out.println(sdf.format(calendar.getTime())); calendar.add(Calendar.DATE, 2); System.out.println(sdf.format(calendar.getTime())); } }