Eighteenth-century Russia and nineteenth-century Japan were similar in that both countries