use std::io::{stdin, Read}; fn main() { let mut buf = String::new(); stdin().read_to_string(&mut buf).unwrap(); let mut tok = buf.split_whitespace(); let mut get = || tok.next().unwrap(); let mut s = get().split('/'); let mut get = || s.next().unwrap(); let mut y: i32 = get().parse().unwrap(); let mut m: i32 = get().parse().unwrap(); let mut d: i32 = get().parse().unwrap(); d += 2; let next_d = match m { 4|6|9|11 => 30, 2 => if (y % 4 == 0 && y % 100 != 0) || y % 400 == 0 { 29 } else { 28 }, _ => 31, }; if d > next_d { d -= next_d; m += 1; if m > 12 { m = 1; y += 1; } } println!("{:4}/{:02}/{:02}", y, m, d); }