This is a direct cut and paste from the Akita prefecture page on Cultural Assets.
Picture: Dedication of a peach to the emperor Wu of the Han/Akagami Shrine collectionIn the ancient Han dynasty of China, the emperor Wu came to Oga with five bats to find a medicinal plant for an elixir of immortality. The five bats transformed into demons and worked hard for the emperor, but one day, the fives bats asked the emperor “Could you please give us just one day to rest?” Eventually they had a break on the 15th of the New Year. They went down to the villages and stole crops, animals, and even young girls. People in the village were distraught and offered the emperor a deal .If the demons could make a thousand stone steps from the beach to Goshado shrine, located on the summit of the mountain, in a single night before the roosters crowed, they would offer a girl to them every year. If they could not, the demons were never to return. Although people in the village expected that it would be impossible to build a thousand stone steps in a night, the demons made the steps easily. When the demons finished making the 999th stone step, people panicked. But the villagers tricked the demons by having village fool imitate the “cock-a-doodle-doo” of the morning rooster’s crow. The demons were so surprised and mad that they pulled over a thousand-year-old cedar, stuck it into the ground, and stormed back to the mountain. They never came down to the village again.