Input: Carnival
While christian festivals such as corpus christi were church-sanctioned celebrations, Carnival was also a manifestation of European folk culture. In the Christian tradition the fasting is to commemorate the 40 days that Jesus fasted in the desert according to the New Testament and also to reflect on Christian values. As with many other Christian festivals such as Christmas which was originally a pagan midwinter festival, the Christian church has found it easier to turn the pagan Carnaval in a catholic tradition than to eliminate it.  Unlike today, carnival in the Middle Ages took not just a few days, but it covered almost the entire period between Christmas and the beginning of Lent. In those two months, several Catholic holidays were seized by the Catholic population as an outlet for their daily frustrations.

Carnival was also a result of what area's folk culture?
Output: European

Input: Federal Bureau of Investigation
In 1939, the Bureau began compiling a custodial detention list with the names of those who would be taken into custody in the event of war with Axis nations. The majority of the names on the list belonged to Issei community leaders, as the FBI investigation built on an existing Naval Intelligence index that had focused on Japanese Americans in Hawaii and the West Coast, but many German and Italian nationals also found their way onto the secret list. Robert Shivers, head of the Honolulu office, obtained permission from Hoover to start detaining those on the list on December 7, 1941, while bombs were still falling over Pearl Harbor. Mass arrests and searches of homes (in most cases conducted without warrants) began a few hours after the attack, and over the next several weeks more than 5,500 Issei men were taken into FBI custody. On February 19, 1942, President Franklin Roosevelt issued Executive Order 9066, authorizing the removal of Japanese Americans from the West Coast. FBI Director Hoover opposed the subsequent mass removal and confinement of Japanese Americans authorized under Executive Order 9066, but Roosevelt prevailed. The vast majority went along with the subsequent exclusion orders, but in a handful of cases where Japanese Americans refused to obey the new military regulations, FBI agents handled their arrests. The Bureau continued surveillance on Japanese Americans throughout the war, conducting background checks on applicants for resettlement outside camp, and entering the camps (usually without the permission of War Relocation Authority officials) and grooming informants in order to monitor dissidents and "troublemakers." After the war, the FBI was assigned to protect returning Japanese Americans from attacks by hostile white communities.

What group did the FBI continue surveillance on?
Output: Japanese Americans

Input: Treaty
There are several reasons an otherwise valid and agreed upon treaty may be rejected as a binding international agreement, most of which involve problems created at the formation of the treaty.[citation needed] For example, the serial Japan-Korea treaties of 1905, 1907 and 1910 were protested; and they were confirmed as "already null and void" in the 1965 Treaty on Basic Relations between Japan and the Republic of Korea.

An otherwise valid and agreed upon treaty may be rejected as what for several reasons most of which involve problems created at the formation of a treaty?
Output: a binding international agreement

Input: Modern history
Europe spent these years rebuilding and coming to terms with the vast human cost of the conflict. The economy of the United States became increasingly intertwined with that of Europe. In Germany, the Weimar Republic gave way to episodes of political and economic turmoil, which culminated with the German hyperinflation of 1923 and the failed Beer Hall Putsch of that same year. When Germany could no longer afford war payments, Wall Street invested heavily in European debts to keep the European economy afloat as a large consumer market for American mass-produced goods. By the middle of the decade, economic development soared in Europe, and the Roaring Twenties broke out in Germany, Britain and France, the second half of the decade becoming known as the "Golden Twenties". In France and francophone Canada, they were also called the "années folles" ("Crazy Years").

When did the hyperinflation of  1923 occur?
Output:
1923