With a cheerful song, a long-haired dog ran down the stairs to play on the roof with his master.