Application of statistical physics to politics