paragraph_text: The pope's official seat or cathedral is the Archbasilica of St. John Lateran, and his official residence is the Apostolic Palace. He also possesses a summer residence at Castel Gandolfo, situated on the site of the ancient city of Alba Longa. Until the time of the Avignon Papacy, the residence of the pope was the Lateran Palace, donated by the Roman emperor Constantine the Great.

paragraph_text: The Julian calendar, proposed by Julius Caesar in 46 BC (708 AUC), was a reform of the Roman calendar. It took effect on 1 January 45 BC (AUC 709), by edict. It was the predominant calendar in the Roman world, most of Europe, and in European settlements in the Americas and elsewhere, until it was refined and gradually replaced by the Gregorian calendar, promulgated in 1582 by Pope Gregory XIII. The Julian calendar gains against the mean tropical year at the rate of one day in 128 years. For the Gregorian the figure is one day in 3,030 years. The difference in the average length of the year between Julian (365.25 days) and Gregorian (365.2425 days) is 0.002%.

paragraph_text: The Solar Hijri calendar, also called the Shamsi Hijri calendar, and abbreviated as SH, is the official calendar of Iran and Afghanistan. It begins on the vernal equinox. Each of the twelve months corresponds with a zodiac sign. The first six months have 31 days, the next five have 30 days, and the last month has 29 days in usual years but 30 days in leap years. The year of Prophet Muhammad's migration to Medina (622 CE) is fixed as the first year of the calendar, and the New Year's Day always falls on the March equinox.

paragraph_text: A month after having decreed the reform, the pope with a brief of 3 April 1582 granted to Antonio Lilio, the brother of Luigi Lilio, the exclusive right to publish the calendar for a period of ten years. The Lunario Novo secondo la nuova riforma printed by Vincenzo Accolti, one of the first calendars printed in Rome after the reform, notes at the bottom that it was signed with papal authorization and by Lilio (Con licentia delli Superiori... et permissu Ant(onii) Lilij). The papal brief was later revoked, on 20 September 1582, because Antonio Lilio proved unable to keep up with the demand for copies.

paragraph_text: Roncalli was elected pope on 28 October 1958 at age 76 after 11 ballots. His selection was unexpected, and Roncalli himself had come to Rome with a return train ticket to Venice. He was the first pope to take the pontifical name of "John" upon election in more than 500 years, and his choice settled the complicated question of official numbering attached to this papal name due to the antipope of this name. Pope John XXIII surprised those who expected him to be a caretaker pope by calling the historic Second Vatican Council (1962–65), the first session opening on 11 October 1962. His passionate views on equality were summed up in his famous statement, "We were all made in God's image, and thus, we are all Godly alike." John XXIII made many passionate speeches during his pontificate, one of which was on the day that he opened the Second Vatican Council in the middle of the night to the crowd gathered in St. Peter's Square: "Dear children, returning home, you will find children: give your children a hug and say: This is a hug from the Pope!"

paragraph_text: Following the strife between Philip IV of France and Pope Boniface VIII and the death of his successor Benedict XI after eight months in office, a deadlocked conclave elected Clement V, a Frenchman, as Pope in 1305. Clement declined to move to Rome, remaining in France, and in 1309, he moved his court to the papal enclave at Avignon, where it remained for the next 67 years. The absence from Rome is sometimes referred to as the ``Babylonian Captivity of the Papacy ''. A total of seven popes reigned at Avignon; all were French, and they increasingly fell under the influence of the French Crown. On September 13, 1376, Gregory XI abandoned Avignon and moved his court to Rome (arriving on January 17, 1377), ending the Avignon Papacy.

paragraph_text: The Avignon Papacy was the period from 1309 to 1376 during which seven successive popes resided in Avignon (then in the Kingdom of Arles, part of the Holy Roman Empire, now in France) rather than in Rome. The situation arose from the conflict between the papacy and the French crown, culminating in the death of Pope Boniface VIII after his arrest and maltreatment by Philip IV of France. Following the further death of Pope Benedict XI, Philip forced a deadlocked conclave to elect the French Clement V as pope in 1305. Clement refused to move to Rome, and in 1309 he moved his court to the papal enclave at Avignon, where it remained for the next 67 years. This absence from Rome is sometimes referred to as the "Babylonian Captivity of the Papacy".

paragraph_text: The Gregorian calendar is internationally the most widely used civil calendar. It is named after Pope Gregory XIII, who introduced it in October 1582.

paragraph_text: Chinese New Year, also known as the Spring Festival in modern China, is an important Chinese festival celebrated at the turn of the traditional lunisolar Chinese calendar. It is one of several Lunar New Years in Asia. Celebrations traditionally run from the evening preceding the first day, to the Lantern Festival on the 15th day of the first calendar month. The first day of the New Year falls on the new moon between January 21 and February 20 In 2018, the first day of the Lunar New Year was on Friday, 16 February, initiating the year of the Dog.

paragraph_text: The Feast of the Most Holy Name of the Blessed Virgin Mary is an optional memorial celebrated in the liturgical calendar of the Catholic Church on 12 September. It has been a universal Roman Rite feast since 1684, when Pope Innocent XI included it in the General Roman Calendar to commemorate the victory at the Battle of Vienna in 1683. It was removed from the Church calendar in the liturgical reform following Vatican II but restored by Pope Saint John Paul II in 2002, along with the Feast of the Holy Name of Jesus.

paragraph_text: The French crown's increasing dominance over the Papacy culminated in the transference of the Holy See to Avignon in 1309. When the Pope returned to Rome in 1377, this led to the election of different popes in Avignon and Rome, resulting in the Papal Schism (1378–1417). The Schism divided Europe along political lines; while France, her ally Scotland and the Spanish kingdoms supported the Avignon Papacy, France's enemy England stood behind the Pope in Rome, together with Portugal, Scandinavia and most of the German princes.

paragraph_text: The Julian calendar has a regular year of 365 days divided into 12 months, as listed in the table below. A leap day is added to February every four years. The Julian year is, therefore, on average 365.25 days long. It was intended to approximate the tropical (solar) year. Although Greek astronomers had known, at least since Hipparchus, a century before the Julian reform, that the tropical year was slightly shorter than 365.25 days, the calendar did not compensate for this difference. As a result, the calendar year gains about three days every four centuries compared to observed equinox times and the seasons. This discrepancy was corrected by the Gregorian reform of 1582. The Gregorian calendar has the same months and month lengths as the Julian calendar, but, in the Gregorian calendar, years evenly divisible by 100 are not leap years, except that years evenly divisible by 400 remain leap years. Consequently -- since 16 February Julian / 1 March 1900 Gregorian and until 15 February Julian / 28 February 2100 Gregorian -- the Julian calendar is currently 13 days behind the Gregorian calendar.

paragraph_text: Clement V declined to move to Rome, remaining in France, and in 1309, he moved his court to the papal enclave at Avignon, where it remained for the next 67 years. The absence from Rome is sometimes referred to as the ``Babylonian Captivity of the Papacy ''. A total of seven popes reigned at Avignon; all were French, and they increasingly fell under the influence of the French Crown. On September 13, 1376, Gregory XI abandoned Avignon and moved his court to Rome (arriving on January 17, 1377), ending the Avignon Papacy.

paragraph_text: The Gregorian reform contained two parts: a reform of the Julian calendar as used prior to Pope Gregory XIII's time and a reform of the lunar cycle used by the Church, with the Julian calendar, to calculate the date of Easter. The reform was a modification of a proposal made by Aloysius Lilius. His proposal included reducing the number of leap years in four centuries from 100 to 97, by making 3 out of 4 centurial years common instead of leap years. Lilius also produced an original and practical scheme for adjusting the epacts of the moon when calculating the annual date of Easter, solving a long-standing obstacle to calendar reform.

paragraph_text: Chinese New Year,, usually known as the Spring Festival in modern China, is an important Chinese festival celebrated at the turn of the traditional lunisolar Chinese calendar. It is one of several Lunar New Years in Asia. Celebrations traditionally run from the evening preceding the first day, to the Lantern Festival on the 15th day of the first calendar month. The first day of the New Year falls on the new moon between January 21 and February 20 In 2018, the first day of the Lunar New Year was on Friday, 16 February, initiating the year of the Dog.

paragraph_text: Artifacts from the Paleolithic suggest that the moon was used to reckon time as early as 6,000 years ago. Lunar calendars were among the first to appear, either 12 or 13 lunar months (either 354 or 384 days). Without intercalation to add days or months to some years, seasons quickly drift in a calendar based solely on twelve lunar months. Lunisolar calendars have a thirteenth month added to some years to make up for the difference between a full year (now known to be about 365.24 days) and a year of just twelve lunar months. The numbers twelve and thirteen came to feature prominently in many cultures, at least partly due to this relationship of months to years. Other early forms of calendars originated in Mesoamerica, particularly in ancient Mayan civilization. These calendars were religiously and astronomically based, with 18 months in a year and 20 days in a month.

paragraph_text: The Julian calendar, proposed by Julius Caesar in 708 AUC (46 BC/BCE), was a reform of the Roman calendar. It took effect on 1 January 709 AUC (45 BC/BCE), by edict. It was the predominant calendar in the Roman world, most of Europe, and in European settlements in the Americas and elsewhere, until it was gradually replaced by the Gregorian calendar, promulgated in 1582 by Pope Gregory XIII.

paragraph_text: The Gregorian calendar is a solar calendar. A regular Gregorian year consists of 365 days, but as in the Julian calendar, in a leap year, a leap day is added to February. In the Julian calendar a leap year occurs every 4 years, but the Gregorian calendar omits 3 leap days every 400 years. In the Julian calendar, this leap day was inserted by doubling 24 February, and the Gregorian reform did not change the date of the leap day. In the modern period, it has become customary to number the days from the beginning of the month, and February 29th is often considered as the leap day. Some churches, notably the Roman Catholic Church, delay February festivals after the 23rd by one day in leap years.

paragraph_text: The Gregorian calendar is the most widely used civil calendar in the world. It is named after Pope Gregory XIII, who introduced it in October 1582. The calendar spaces leap years to make the average year 365.2425 days long, approximating the 365.2422 day tropical year that is determined by the Earth's rotation around the Sun. The rule for leap years is as follows:

paragraph_text: During the tumultuous 14th century, disputes within the leadership of the Church led to the Avignon Papacy of 1305–78, also called the "Babylonian Captivity of the Papacy" (a reference to the Babylonian captivity of the Jews), and then to the Great Schism, lasting from 1378 to 1418, when there were two and later three rival popes, each supported by several states. Ecclesiastical officials convened at the Council of Constance in 1414, and in the following year the council deposed one of the rival popes, leaving only two claimants. Further depositions followed, and in November 1417 the council elected Martin V (pope 1417–31) as pope.

Question: In what year did the Pope return from Avignon to the place where the first calendars were printed?
Answer: 1377