﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _05.dateAfter5Days
{
    class Program
    {
        static void Main(string[] args)
        {
            var day = int.Parse(Console.ReadLine());
            var month = int.Parse(Console.ReadLine());
            var year = 2015;
            DateTime input = new DateTime(year, month, day);
            DateTime.IsLeapYear(2016);
            DateTime date = input;
            date = date.AddDays(5);
            Console.WriteLine(date.ToString("d.MM"));      
        }
    }
}