Two men have pleaded guilty at Norwich Magistrates' Court to breaking into Prince William and Princess Catherine's Sandringham country residence.