<prompt> Kuandika kazi kubadilisha mwaka kutoka kalenda ya Gregorian kwa kalenda ya Maya  <response>: The Mayan calendar consists of several cycles of different lengths. One of the most important cycles is the Haab which is a 365-day solar calendar, similar to the Gregorian calendar. The Haab has 18 months of 20 days each with an additional period of 5 days at the end of the year called Wayeb In Gregorian calendar we commonly use the A.D or C.E Common era. On the other hand, Mayans used a system known as the Long Count as a fixed point in time, with the point zero date is now consider as August 11, 3114 BCE. In order to convert a year from Gregorian calendar to Mayan calendar, we need to calculate the number of days from August 11, 3114 BCE to the specified Gregorian date, then convert these days to the Mayan Long Count format.Here is the function to convert a year from the Gregorian calendar to the Mayan Long Count:pythonfrom datetime import date, datetimedef gregorian_to_mayanyear: int, month: int, day: int - str: getting julian date of the event julian date.toordinaldateyear, month, day Calculate the number of days from the beginning of the Mayan Long Count August 11, 3114 BCE to the Julian date days julian 584283 Calculate the Mayan Long Count from the number of days baktun days 144000 days - baktun 144000 katun days 7200 days - katun 7200 tun days 360 days - tun 360 winal days 20 kin days - winal 20 Return the Mayan Long Count date in the format baktun.katun.tun.winal.kin return fbaktun.katun.tun.winal.kinExample:pythonprintgregorian_to_mayan2021, 9, 19Output:13.0.8.16.12 