Borrowed from Hungarian magyar (“Hungarian”).
Practice speaking and memorizing "magiar" and many other words and sentences in Portuguese.