Magic polygon