{"id":372917,"date":"2024-05-21T05:23:53","date_gmt":"2024-05-21T05:23:53","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=372917"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T05:23:53","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=372917","title":{"rendered":"<span>\u0420\u0430\u0437\u0431\u043e\u0440 \u0437\u0430\u0434\u0430\u0447 \u00ab\u041a\u0432\u0435\u0441\u0442\u0430 \u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u00bb<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0414\u0440\u0443\u0437\u044c\u044f, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0435\u0433\u043e \u043a\u0432\u0435\u0441\u0442\u0430 \u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438. \u041e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u043d\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u0432\u0435\u0441\u0442\u0435 \u043f\u043e <a href=\"https:\/\/stepik.org\/lesson\/1264319\/step\/1?unit=1278444\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/599\/865\/809\/599865809d1bc079f5571e768c1eac58.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/599\/865\/809\/599865809d1bc079f5571e768c1eac58.png\"\/><\/figure>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 1.<\/strong> \u041e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0443\u0442\u043e\u043a \u043f\u0440\u043e\u0448\u043b\u0430\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"\\dfrac15\" alt=\"\\dfrac15\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2f8\/0fa\/d94\/2f80fad9447fc0f24a0186a10c0d76bc.svg\" width=\"17\" height=\"42\"\/>\u0442\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u0443\u0442\u043e\u043a. \u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0435\u0439\u0447\u0430\u0441 \u0447\u0430\u0441?<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u0443\u0441\u0442\u044c \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0443\u0442\u043e\u043a \u043f\u0440\u043e\u0448\u043b\u043e<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x\" alt=\"x\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/58b\/715\/0ac\/58b7150ac4a75ef52990ed18f2bbb1a9.svg\" width=\"11\" height=\"12\"\/>\u0447\u0430\u0441\u043e\u0432. \u0421\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0438 \u0440\u0435\u0448\u0438\u043c \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x = \\dfrac15\\cdot(24-x) \\iff 5x = 24-x \\iff 6x = 24 \\iff x = 4 \" alt=\"x = \\dfrac15\\cdot(24-x) \\iff 5x = 24-x \\iff 6x = 24 \\iff x = 4 \" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b5d\/56c\/5bc\/b5d56c5bcdeed7f66365fb8a46d8a858.svg\" width=\"520\" height=\"42\"\/><\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"4\" alt=\"4\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/818\/9e6\/272\/8189e627222d481090297245a20c7f61.svg\" width=\"10\" height=\"17\"\/>. <\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 2.<\/strong> \u041d\u0430\u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u0444\u0438\u0433\u0443\u0440\u0443 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u0435\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u044c:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u0441\u0442\u0443\u043f\u0438<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"8\" alt=\"8\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ffd\/1ca\/4c3\/ffd1ca4c35f0f56dd06e0e17ff02001f.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043e\u043a \u0441\u043b\u0435\u0432\u0430 \u0438<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"8\" alt=\"8\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f15\/fc1\/013\/f15fc1013156372ad80ec0762667cc25.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043e\u043a \u0441\u0432\u0435\u0440\u0445\u0443<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u0442\u0430\u0432\u044c \u0442\u043e\u0447\u043a\u0443 \u0432 \u0443\u0437\u043b\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0435\u0442\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3\" alt=\"3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/109\/f0a\/071\/109f0a071089b575073b7d36953ec57d.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3\" alt=\"3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/109\/f0a\/071\/109f0a071089b575073b7d36953ec57d.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3\" alt=\"3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/109\/f0a\/071\/109f0a071089b575073b7d36953ec57d.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u043d\u0438\u0437 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3\" alt=\"3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/109\/f0a\/071\/109f0a071089b575073b7d36953ec57d.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3\" alt=\"3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/109\/f0a\/071\/109f0a071089b575073b7d36953ec57d.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3\" alt=\"3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/109\/f0a\/071\/109f0a071089b575073b7d36953ec57d.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u043d\u0438\u0437 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3\" alt=\"3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/109\/f0a\/071\/109f0a071089b575073b7d36953ec57d.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u043d\u0438\u0437<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"9\" alt=\"9\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3cd\/5d5\/731\/3cd5d5731f374e8b4671738b9d6a3634.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043e\u043a \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u043d\u0438\u0437 \u0438 \u0432\u043b\u0435\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"9\" alt=\"9\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bd3\/e14\/5b0\/bd3e145b094d2c5a407393834ddfa4a5.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043e\u043a \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043b\u0435\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"3\" alt=\"3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/109\/f0a\/071\/109f0a071089b575073b7d36953ec57d.svg\" width=\"10\" height=\"16\"\/>\u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u0432\u0435\u0440\u0445<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0423\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0444\u0438\u0433\u0443\u0440\u0430:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/14a\/cf1\/9a4\/14acf19a440d898b707c25a72609273a.png\" width=\"1801\" height=\"1276\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/14a\/cf1\/9a4\/14acf19a440d898b707c25a72609273a.png\"\/><\/figure>\n<p>\u0415\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0440\u0430\u0432\u043d\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"171\" alt=\"171\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c62\/56b\/f94\/c6256bf94ef486fe6cf5fa341da73e86.svg\" width=\"29\" height=\"17\"\/>.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"171\" alt=\"171\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a49\/6e0\/dca\/a496e0dcaa5ffe2a7f7254e0a6f0c7ee.svg\" width=\"29\" height=\"17\"\/>.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 3.<\/strong> \u0417\u0430\u0433\u0430\u0434\u0430\u043b\u0438<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"4\" alt=\"4\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a4b\/776\/c9d\/a4b776c9dec47662a7f53913756ef1b2.svg\" width=\"10\" height=\"17\"\/>\u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u043b\u0430\u00a0<code>A, B, C, D<\/code>, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c\u00a0<code>A &lt; B &lt; C &lt; D<\/code>. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0447\u0438\u0441\u043b\u0430\u00a0<code>A, B, C, D, A\u00a0\u00d7 B, B\u00a0\u00d7 C, C\u00a0\u00d7 D, D\u00a0\u00d7 A<\/code>\u00a0(\u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435).\u00a0\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e\u00a0<code>D<\/code>.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430<\/strong>. \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443:<\/p>\n<pre><code class=\"python\">a, b, c1, c2, _, _, _, cd = sorted(map(int, input().split())) print(cd \/\/ c2 if a * b == c1 else cd \/\/ c1)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 4.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0434\u0432\u0430 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 \u00a0<code>\u0410<\/code>\u00a0\u0438\u00a0<code>\u0412<\/code>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u0443\u043c\u043c\u0430\u043c\u0438 \u0432\u0441\u0435\u0445 \u0447\u0435\u0442\u043d\u044b\u0445 \u0438 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0442\u00a0<code>\u0410<\/code>\u00a0\u0434\u043e\u00a0<code>\u0412<\/code> \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0421\u0447\u0438\u0442\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u0430\u00a0<code>A<\/code>\u00a0\u0438\u00a0<code>B<\/code>\u00a0\u043d\u0435 \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u044f\u0442 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"2\\cdot 10^9\" alt=\"2\\cdot 10^9\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/724\/ac8\/acb\/724ac8acb0e851c853e23c8eacad4f7b.svg\" width=\"52\" height=\"21\"\/>.   <\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u0435\u0440\u0435\u0431\u043e\u0440\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0447\u0438\u0441\u0435\u043b <code>A<\/code>\u00a0\u0438\u00a0<code>B<\/code>. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0443\u043c\u043c\u044b \u0434\u0432\u0443\u0445 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0439, \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"O(1)\" alt=\"O(1)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d73\/235\/ccd\/d73235ccd5afd0add423d0e19645eba7.svg\" width=\"39\" height=\"22\"\/>. \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443:<\/p>\n<pre><code class=\"python\">a = int(input()) b = int(input())  a2 = a + a % 2 b2 = b - b % 2 even = (b2 + a2) \/\/ 2 * ((b2 - a2) \/\/ 2 + 1)  a1 = a + (1 - a % 2) b1 = b - (1 - b % 2) odd = (b1 + a1) \/\/ 2 * ((b1 - a1) \/\/ 2 + 1)  print(even - odd)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 5.<\/strong> \u0414\u0430\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u0432 \u0433\u043e\u0440\u043e\u0434\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442 \u0434\u043e\u043c\u0430 \u0414\u0436\u043e\u043d\u0430\u0442\u0430\u043d\u0430 (\u0414) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413)\u00a0\u2014\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"15\" alt=\"15\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b97\/5ef\/87e\/b975ef87e7b5f08055d19b9d81f36a7e.svg\" width=\"19\" height=\"16\"\/>\u043a\u043c<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442 \u0410\u0432\u0442\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0445 (\u0410) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u2014\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"10\" alt=\"10\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5d5\/af8\/5db\/5d5af85db3a367c7cb57a533cbbf520b.svg\" width=\"19\" height=\"16\"\/>\u043a\u043c<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442 \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u0434\u043e \u0411\u0430\u0448\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0435\u0449\u0430\u043d\u0438\u044f\u00a0(\u0411)\u00a0\u2014\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"11\" alt=\"11\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7d2\/907\/188\/7d2907188ecc42f872acb2a27ca3dfdb.svg\" width=\"19\" height=\"16\"\/>\u043a\u043c<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442 \u0410\u0432\u0442\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0445 (\u0410) \u0434\u043e \u0411\u0430\u0448\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0435\u0449\u0430\u043d\u0438\u044f (\u0411)\u00a0\u2014\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"8\" alt=\"8\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/eb6\/0af\/ded\/eb60afded32b81c98c05dd00f08a2dde.svg\" width=\"10\" height=\"16\"\/>\u043a\u043c<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442 \u0412\u0438\u0440\u0443\u0441\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 (\u0412) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u2014\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"17\" alt=\"17\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b4b\/c7a\/e05\/b4bc7ae05980bdba753a212ef093629d.svg\" width=\"19\" height=\"17\"\/>\u043a\u043c<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0430\u043c, \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0449\u0438\u043c \u0433\u043e\u0440\u043e\u0434\u0441\u043a\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 (\u0441\u043c\u043e\u0442\u0440\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443). \u041d\u0430 \u043a\u0430\u043a\u043e\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043e\u0442 \u0434\u043e\u043c\u0430 \u0414\u0436\u043e\u043d\u0430\u0442\u0430\u043d\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0412\u0438\u0440\u0443\u0441\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0446\u0435\u043d\u0442\u0440?<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d4f\/b0e\/1da\/d4fb0e1dad1ff4ea170e28e3ed420dac.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d4f\/b0e\/1da\/d4fb0e1dad1ff4ea170e28e3ed420dac.png\"\/><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0421\u043b\u043e\u0436\u0438\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043e\u0442 \u0434\u043e\u043c\u0430 \u0414\u0436\u043e\u043d\u0430\u0442\u0430\u043d\u0430 (\u0414) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u0438 \u043e\u0442 \u0412\u0438\u0440\u0443\u0441\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 (\u0412) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413): <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"15 + 17 = 32\" alt=\"15 + 17 = 32\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6ab\/256\/c53\/6ab256c537d3a98a50fe6d45d34ae3f5.svg\" width=\"107\" height=\"18\"\/>. \u0411\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0434\u043e\u0440\u043e\u0433\u0430 \u0438 \u0434\u0432\u0430\u0436\u0434\u044b \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0442 \u043d\u0435\u0435 \u043a \u043e\u0444\u0438\u0441\u0443 \u0413\u0432\u0438\u0434\u043e (\u0413).<\/p>\n<p>\u041a \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442 \u0410\u0432\u0442\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0445 (\u0410) \u0434\u043e \u0411\u0430\u0448\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0435\u0449\u0430\u043d\u0438\u044f (\u0411): <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"32 + 8 = 40\" alt=\"32 + 8 = 40\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/93c\/0a3\/e4a\/93c0a3e4a269da6e1c5df557ac46e274.svg\" width=\"97\" height=\"18\"\/>. \u0411\u0443\u0434\u0443\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u0432\u0441\u0435 \u0442\u0440\u0438 \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f (\u043a \u043e\u0444\u0438\u0441\u0443 \u0413\u0432\u0438\u0434\u043e \u2014  \u0434\u0432\u0430\u0436\u0434\u044b), \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0434\u043e\u0440\u043e\u0433\u0430 \u0442\u043e\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u0430, \u043f\u0440\u0438\u0447\u0435\u043c \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043d\u0430 \u043d\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u0442\u0440\u0435\u0442\u044c\u0438\u043c \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u2014 \u0434\u0432\u0430\u0436\u0434\u044b.<\/p>\n<p>\u0412\u044b\u0447\u0442\u0435\u043c \u0438\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u0432\u0430 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f: \u043e\u0442 \u0410\u0432\u0442\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0445 (\u0410) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u0438 \u043e\u0442 \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u0434\u043e \u0411\u0430\u0448\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0435\u0449\u0430\u043d\u0438\u044f (\u0411): <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"40 - 11 - 10 = 19\" alt=\"40 - 11 - 10 = 19\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c49\/08a\/01c\/c4908a01ce89c9844e045e4c4d56dbff.svg\" width=\"150\" height=\"18\"\/>. \u0422\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0434\u043e\u0440\u043e\u0433\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442 \u0434\u043e\u043c\u0430 \u0414\u0436\u043e\u043d\u0430\u0442\u0430\u043d\u0430 \u0434\u043e \u0412\u0438\u0440\u0443\u0441\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 \u0440\u0430\u0432\u043d\u043e 19 \u043a\u043c.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442.<\/strong><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"19\" alt=\"19\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/97a\/ef7\/922\/97aef7922664109661872e37489d4cb2.svg\" width=\"19\" height=\"16\"\/>.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 6.<\/strong> \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u043e\u043c<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"179\" alt=\"179\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/96f\/f34\/d8f\/96ff34d8f743479928cc6e4afabab753.svg\" width=\"29\" height=\"17\"\/>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/20d\/a1c\/d14\/20da1cd145d34a566e7b7b1b7ce1f4bc.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/20d\/a1c\/d14\/20da1cd145d34a566e7b7b1b7ce1f4bc.png\"\/><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0423\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0441 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0431\u0443\u043a\u0432\u0443 <code>X<\/code> \u043d\u0430 \u0446\u0438\u0444\u0440\u0443 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"0\" alt=\"0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f4a\/1d4\/df1\/f4a1d4df1d4abf9d76761cf3d7e16b81.svg\" width=\"10\" height=\"16\"\/>, \u0431\u0443\u043a\u0432\u0443 <code>Y<\/code> \u2014 \u043d\u0430 \u0446\u0438\u0444\u0440\u0443 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"1\" alt=\"1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d74\/049\/f65\/d74049f65a788aa3dc40b69a98ad1697.svg\" width=\"10\" height=\"16\"\/>, \u0430 \u0431\u0443\u043a\u0432\u0443 <code>Z<\/code> \u2014 \u043d\u0430 \u0446\u0438\u0444\u0440\u0443 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"2\" alt=\"2\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/492\/afb\/486\/492afb48688b26b145f3002dd277997b.svg\" width=\"10\" height=\"16\"\/>, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/p>\n<pre><code>00000 00001 00002 00010<\/code><\/pre>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u043e\u043c\u0435\u0440<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"i\" alt=\"i\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/76f\/d16\/d42\/76fd16d4272bf38653861b728f1e56ff.svg\" width=\"7\" height=\"16\"\/>\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"i-1\" alt=\"i-1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aa3\/b7b\/a86\/aa3b7ba86d8c4f8a15800d8b5434079a.svg\" width=\"40\" height=\"17\"\/>, \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0443\u043b\u044f\u043c\u0438 \u0434\u043e \u043f\u044f\u0442\u0438 \u0446\u0438\u0444\u0440. \u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043c \u0447\u0438\u0441\u043b\u043e<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"178\" alt=\"178\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f45\/c5f\/838\/f45c5f83845495c1cfff595366a5b6f9.svg\" width=\"29\" height=\"17\"\/>\u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"20121\" alt=\"20121\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/260\/11d\/f42\/26011df423dc2d7b6dd105e1e3541f4f.svg\" width=\"48\" height=\"16\"\/>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0437\u0430\u0434\u0430\u0447\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0430 <code>ZXYZY<\/code>.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> ZXYZY.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 7.<\/strong> \u0412 \u0434\u0430\u043b\u0435\u043a\u043e\u043c\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"2024\" alt=\"2024\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/599\/e16\/7a6\/599e167a6f2c6732e683a9cc80bde79c.svg\" width=\"39\" height=\"17\"\/>\u0433\u043e\u0434\u0443 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u0431\u0430\u043d\u043a\u0430 \u0441\u043b\u043e\u043c\u0430\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442 \u0432\u044b\u0434\u0430\u0447\u0438 \u0442\u0430\u043b\u043e\u043d\u043e\u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0414\u0436\u0435\u0439\u043c\u0441 \u0441\u0442\u0430\u043b \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043b\u043e\u043d\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0432\u0432\u043e\u0434\u044f \u043d\u043e\u043c\u0435\u0440\u0430 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u0435\u0447\u0430\u0442\u0438. \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u0435\u043d\u044c \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0439 \u043e\u0444\u0438\u0441 \u0437\u0430\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b \u0443 \u0414\u0436\u0435\u0439\u043c\u0441\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0431\u0430\u043d\u043a\u0430 \u0437\u0430 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0439 \u0434\u0435\u043d\u044c, \u0432\u0435\u0434\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u043a\u0430 \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0430 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442. \u0414\u0436\u0435\u0439\u043c\u0441 \u0441\u0445\u0432\u0430\u0442\u0438\u043b\u0441\u044f \u0437\u0430 \u0433\u043e\u043b\u043e\u0432\u0443: \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u043b\u043e\u043d\u043e\u0432 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0441\u044f! \u041e\u0434\u043d\u0430\u043a\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043e\u0442\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"0\" alt=\"0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9db\/1cd\/ddf\/9db1cdddf2653326bba2ca5558317131.svg\" width=\"10\" height=\"16\"\/>\u0434\u043e\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"9\" alt=\"9\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f14\/7ba\/9a5\/f147ba9a5b85766c48f589c28a5f8b25.svg\" width=\"10\" height=\"16\"\/>\u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435. \u041e\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u044b \u0432\u0438\u0434\u0438\u0448\u044c \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430. \u0422\u0430\u043a \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0431\u044b\u043b\u043e \u0432 \u0431\u0430\u043d\u043a\u0435 \u0432 \u0442\u043e\u0442 \u0437\u043b\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u044b\u0439 \u0434\u0435\u043d\u044c, \u0435\u0441\u043b\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0434\u043d\u044f \u0432\u044b\u0434\u0430\u0447\u0430 \u0442\u0430\u043b\u043e\u043d\u043e\u0432 \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0441 \u043d\u043e\u043c\u0435\u0440\u0430\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"1\" alt=\"1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/800\/5cc\/bd1\/8005ccbd122e6825209543db259f5097.svg\" width=\"10\" height=\"16\"\/>?  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/70f\/67e\/95e\/70f67e95e29187d29cc8b72040d6b6ff.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/70f\/67e\/95e\/70f67e95e29187d29cc8b72040d6b6ff.png\"\/><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0414\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0443 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0446\u0438\u0444\u0440.<\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"python\">n = 10000 digits = dict.fromkeys(range(10), 0)  for num in range(1, n):     for i in map(int, str(num)):         digits[i] += 1     if digits[0] == 1229 and digits[9] == 1237:         print(digits)         print(num)<\/code><\/pre>\n<p>\u0432\u044b\u0432\u043e\u0434\u0438\u0442:<\/p>\n<pre><code>{0: 1229, 1: 2338, 2: 2240, 3: 2240, 4: 1438, 5: 1240, 6: 1240, 7: 1240, 8: 1239, 9: 1237} 4197<\/code><\/pre>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"4197\" alt=\"4197\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b70\/884\/56f\/b7088456fd5b8de48df27038487827fd.svg\" width=\"39\" height=\"17\"\/>.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 8.<\/strong> \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0436\u0430\u0442\u044c \u043f\u044f\u0442\u044c \u043a\u043b\u0430\u0432\u0438\u0448 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0431\u043e\u0440 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043d\u0430\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435, \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044b \u043d\u0430 \u0441\u0435\u043d\u0441\u043e\u0440\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ced\/cdc\/f19\/cedcdcf192efc1c6541b64519997c52a.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ced\/cdc\/f19\/cedcdcf192efc1c6541b64519997c52a.png\"\/><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0415\u0441\u043b\u0438 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043b\u0430\u0432\u0438\u0448\u0438 <code>74852<\/code>, \u0442\u043e \u043d\u0430 \u0441\u0435\u043d\u0441\u043e\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043d\u0430\u0431\u043e\u0440: <code>48527<\/code>.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> 74852 (\u0446\u0438\u0444\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435).<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 8.<\/strong> \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"python\">n = int(input())  result = 0 for i in range(n):     for j in range(2*n):         result += j + i  print(result)<\/code><\/pre>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438\u043c\u0435\u0435\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u0447\u043d\u0443\u044e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"O(n^2)\" alt=\"O(n^2)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/190\/fd9\/185\/190fd91852b04f41dcb0b4465d393a3d.svg\" width=\"50\" height=\"25\"\/>. \u0415\u0433\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0438\u043c\u0435\u043b \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u0443\u044e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"O(1)\" alt=\"O(1)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bd3\/3fa\/f94\/bd33faf944ee8712c1907167e149a033.svg\" width=\"39\" height=\"22\"\/>:<\/p>\n<pre><code class=\"python\">n = int(input())  result = n**2 * (3 * n - 2)  print(result)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 9.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043e\u0434\u043d\u043e \u0446\u0435\u043b\u043e\u0435 \u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0<code>s<\/code>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e\u00a0\u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0442\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"0\" alt=\"0\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6da\/fad\/978\/6dafad9786c601206c3bf6bb15b90f30.svg\" width=\"10\" height=\"16\"\/>\u0434\u043e\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"10^{12}\" alt=\"10^{12}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/65b\/6a0\/e51\/65b6a0e514f03a12ea05fe5a4e5ca980.svg\" width=\"35\" height=\"21\"\/>\u0441 \u0441\u0443\u043c\u043c\u043e\u0439 \u0446\u0438\u0444\u0440\u00a0<code>s<\/code>.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u0432\u0435\u0441\u0442\u0430 \u0440\u0435\u0448\u0430\u043b\u0438 \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u0442\u0440\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445.<\/p>\n<p>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code class=\"python\">def count_numbers(s):     dp = [[0 for _ in range(s + 1)] for _ in range(13)]     dp[0][0] = 1     for i in range(1, 13):         for j in range(s + 1):             for k in range(10):                 if j >= k:                     dp[i][j] += dp[i - 1][j - k]     return dp[12][s]  s = int(input()) print(count_numbers(s))<\/code><\/pre>\n<p>\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u044f:<\/p>\n<pre><code class=\"python\">from functools import lru_cache   @lru_cache(maxsize=None) def func(digit_sum: int, number_length: int):     if number_length == 0:         return 0     if 0 &lt;= digit_sum &lt;= 9 and number_length == 1:         return 1      res = 0     for d in range(10):         if digit_sum - d >= 0:             res += func(digit_sum - d, number_length - 1)      return res   s = int(input()) print(func(s, 12))<\/code><\/pre>\n<p><a href=\"https:\/\/ru.algorithmica.org\/cs\/decomposition\/mitm\/\" rel=\"noopener noreferrer nofollow\">Meet in the middle<\/a>:<\/p>\n<pre><code class=\"python\">from collections import defaultdict  def get_sum(num):     return sum(map(int, str(num)))   n = 10**6  s = int(input()) di = defaultdict(int)  for i in range(n):     di[get_sum(i)] += 1  total = 0  for i in range(n):     ss = get_sum(i)     if s - ss >= 0:         total += di[s - ss]  print(total)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 10.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0433\u0430\u0434\u0430\u0442\u044c \u043a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043b\u043e\u0432\u043e \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438.<\/p>\n<ol>\n<li>\n<p>\u041c\u0435\u0442\u043e\u0434\u0438\u043a\u0430 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0433\u043e\u043b\u043e\u0441\u0430, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0435. \u0412\u0438\u0434\u0435\u043e\u0440\u043e\u043b\u0438\u043a\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u044d\u0442\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 Youtube \u0438\u043b\u0438 Tiktok.<\/p>\n<\/li>\n<li>\n<p>\u0427\u0435\u0442\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0448\u0430\u0433\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u043c\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u0442\u043e\u0434 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0438\u043c\u0438\u0442\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u043e\u0437\u0433\u0430.\u00a0<\/p>\n<\/li>\n<li>\n<p>\u0412\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e: &#171;<em>OpenAI \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 __ \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u0441\u0435 \u0437\u043d\u0430\u044e\u0442 \u043a\u0430\u043a ChatGPT&#187;.<\/em><\/p>\n<\/li>\n<li>\n<p>\u0414\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u0441\u043c\u044b\u0441\u043b\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435\u00a0\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043d\u043e\u0432\u043e\u0433\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u0435\u043c\u0443 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u044f\u0437\u044b\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0437\u0430\u0434\u0430\u0447\u0438. \u0422\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b \u0432 Telegram.<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0421\u043b\u043e\u0432\u043e \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 \u2014  \u041f\u0420\u041e\u041c\u041f\u0422.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3a7\/b3b\/fea\/3a7b3bfeaba9ad08229776f43ff316bd.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3a7\/b3b\/fea\/3a7b3bfeaba9ad08229776f43ff316bd.png\"\/><\/figure>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> \u041f\u0420\u041e\u041c\u041f\u0422.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 11.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043e\u0434\u043d\u043e \u0446\u0435\u043b\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0<code>n<\/code>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0446\u0435\u043b\u044b\u0445 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u043d\u0435 \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u00a0<code>n<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e \u0438\u0437 \u0447\u0438\u0441\u0435\u043b\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"2, 3\" alt=\"2, 3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/94b\/333\/c67\/94b333c671d621d2141ee4e3b38bf5ed.svg\" width=\"28\" height=\"19\"\/>\u0438\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"5\" alt=\"5\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bbc\/566\/de4\/bbc566de4aa35466a7386c9c1b3ea6b7.svg\" width=\"10\" height=\"16\"\/>.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f:<\/p>\n<pre><code class=\"python\">n = int(input())  print(n - n\/\/2 - n\/\/3 - n\/\/5 + n\/\/6 + n\/\/10 + n\/\/15 - n\/\/30)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 12.<\/strong> \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430. \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0435\u0435 \u043d\u0430\u0439\u0442\u0438 \u0438 \u0440\u0435\u0448\u0438\u0442\u044c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e82\/715\/188\/e827151887d9bb3cd37e012bc70c1098.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e82\/715\/188\/e827151887d9bb3cd37e012bc70c1098.png\"\/><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d \u0442\u0435\u043a\u0441\u0442: <strong>\u0414\u0416\u041e\u041d\u0410\u0422\u041e\u041d \u041d\u0410\u041f\u0418\u0428\u0418\u0422\u0415 \u0412 \u041e\u0422\u0412\u0415\u0422\u0415 \u041f\u0415\u0420\u0412\u042b\u0415 \u0412\u041e\u0421\u0415\u041c\u041d\u0410\u0414\u0426\u0410\u0422\u042c \u0426\u0418\u0424\u0420 \u0427\u0418\u0421\u041b\u0410 \u041f\u0418 \u041f\u041e\u0421\u041b\u0415 \u0417\u0410\u041f\u042f\u0422\u041e\u0419<\/strong>. \u0414\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9A%D1%80%D0%B8%D0%B2%D0%B0%D1%8F_%D0%9F%D0%B5%D0%B0%D0%BD%D0%BE\" rel=\"noopener noreferrer nofollow\">\u043a\u0440\u0438\u0432\u0430\u044f \u041f\u0435\u0430\u043d\u043e<\/a>, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3c1\/5dc\/cde\/3c15dccdeedef00d4c204e451b617592.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3c1\/5dc\/cde\/3c15dccdeedef00d4c204e451b617592.png\"\/><\/figure>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"141592653589793238\" alt=\"141592653589793238\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d81\/567\/869\/d815678695e06b0a8cde8dea3ef50928.svg\" width=\"174\" height=\"17\"\/>.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 13.<\/strong> \u0422\u0430 \u0441\u0430\u043c\u0430\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430. \u0415\u0435 \u0440\u0430\u0437\u0431\u043e\u0440 \u0431\u044b\u043b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u043d\u0435\u0434\u0435\u043b\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c <a href=\"https:\/\/habr.com\/ru\/articles\/803809\/\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0441\u0442\u0435 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435<\/a>.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 14.<\/strong> \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0448\u0438\u0442\u044c \u0440\u0435\u0431\u0443\u0441.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/146\/834\/c96\/146834c96091c043c1445e57c6cb4054.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/146\/834\/c96\/146834c96091c043c1445e57c6cb4054.png\"\/><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0412 \u0440\u0435\u0431\u0443\u0441\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u043e\u0432\u043e <strong>\u0425\u0415\u0428\u0418\u0420\u041e\u0412\u0410\u041d\u0418\u0415<\/strong>.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> \u0425\u0415\u0428\u0418\u0420\u041e\u0412\u0410\u041d\u0418\u0415.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 15.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u0447\u0438\u0441\u0435\u043b <strong>\u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<\/strong><\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u0437\u0430\u0434\u0430\u0447 \u21161-14 \u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0447\u0438\u0441\u043b\u043e. \u0421\u043f\u0438\u0441\u043e\u043a \u0447\u0438\u0441\u0435\u043b \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <code>0, 9, 7, 3, 5, 3, 8, 3, 7, 97, 4, 2, 9, 61, 5<\/code>. \u041d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u2014 \u044d\u0442\u043e <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"99978776155343023\" alt=\"99978776155343023\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b29\/0c8\/f91\/b290c8f911c733ff445587f8308d7087.svg\" width=\"164\" height=\"17\"\/>.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"99978776155343023\" alt=\"99978776155343023\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a2b\/d0b\/c16\/a2bd0bc16b42af409f40139c4ea39233.svg\" width=\"164\" height=\"17\"\/>.<\/p>\n<p>\u041f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0438 \u043a\u0432\u0435\u0441\u0442\u0430 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u044b \u0432 \u043d\u0430\u0448\u0435\u043c <a href=\"https:\/\/t.me\/pygen_ru\/1199\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b\u0435<\/a>. ?  <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/805831\/\"> https:\/\/habr.com\/ru\/articles\/805831\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0414\u0440\u0443\u0437\u044c\u044f, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0435\u0433\u043e \u043a\u0432\u0435\u0441\u0442\u0430 \u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438. \u041e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u043d\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u0432\u0435\u0441\u0442\u0435 \u043f\u043e <a href=\"https:\/\/stepik.org\/lesson\/1264319\/step\/1?unit=1278444\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 1.<\/strong> \u041e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0443\u0442\u043e\u043a \u043f\u0440\u043e\u0448\u043b\u0430\u00a0\u0442\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u0443\u0442\u043e\u043a. \u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0435\u0439\u0447\u0430\u0441 \u0447\u0430\u0441?<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u0443\u0441\u0442\u044c \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0443\u0442\u043e\u043a \u043f\u0440\u043e\u0448\u043b\u043e\u0447\u0430\u0441\u043e\u0432. \u0421\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0438 \u0440\u0435\u0448\u0438\u043c \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435:<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> . <\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 2.<\/strong> \u041d\u0430\u0440\u0438\u0441\u0443\u0439\u0442\u0435 \u0444\u0438\u0433\u0443\u0440\u0443 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u0435\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u044c:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442\u0441\u0442\u0443\u043f\u0438\u043a\u043b\u0435\u0442\u043e\u043a \u0441\u043b\u0435\u0432\u0430 \u0438\u043a\u043b\u0435\u0442\u043e\u043a \u0441\u0432\u0435\u0440\u0445\u0443<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u0442\u0430\u0432\u044c \u0442\u043e\u0447\u043a\u0443 \u0432 \u0443\u0437\u043b\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0435\u0442\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u043d\u0438\u0437 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u043d\u0438\u0437 \u0438 \u0432\u043f\u0440\u0430\u0432\u043e<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u043d\u0438\u0437<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043e\u043a \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u043d\u0438\u0437 \u0438 \u0432\u043b\u0435\u0432\u043e<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043e\u043a \u043f\u043e \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u0438 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043b\u0435\u0432\u043e<\/p>\n<\/li>\n<li>\n<p>\u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u0432\u0435\u0440\u0445<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0423\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0444\u0438\u0433\u0443\u0440\u0430:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0415\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0440\u0430\u0432\u043d\u0430 .<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> .<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 3.<\/strong> \u0417\u0430\u0433\u0430\u0434\u0430\u043b\u0438\u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u043b\u0430\u00a0<code>A, B, C, D<\/code>, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c\u00a0<code>A &lt; B &lt; C &lt; D<\/code>. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0447\u0438\u0441\u043b\u0430\u00a0<code>A, B, C, D, A\u00a0\u00d7 B, B\u00a0\u00d7 C, C\u00a0\u00d7 D, D\u00a0\u00d7 A<\/code>\u00a0(\u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435).\u00a0\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e\u00a0<code>D<\/code>.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430<\/strong>. \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443:<\/p>\n<pre><code class=\"python\">a, b, c1, c2, _, _, _, cd = sorted(map(int, input().split())) print(cd \/\/ c2 if a * b == c1 else cd \/\/ c1)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 4.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0434\u0432\u0430 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 \u00a0<code>\u0410<\/code>\u00a0\u0438\u00a0<code>\u0412<\/code>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u0443\u043c\u043c\u0430\u043c\u0438 \u0432\u0441\u0435\u0445 \u0447\u0435\u0442\u043d\u044b\u0445 \u0438 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0442\u00a0<code>\u0410<\/code>\u00a0\u0434\u043e\u00a0<code>\u0412<\/code> \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0421\u0447\u0438\u0442\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u0430\u00a0<code>A<\/code>\u00a0\u0438\u00a0<code>B<\/code>\u00a0\u043d\u0435 \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u044f\u0442 .   <\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u0435\u0440\u0435\u0431\u043e\u0440\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0447\u0438\u0441\u0435\u043b <code>A<\/code>\u00a0\u0438\u00a0<code>B<\/code>. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0443\u043c\u043c\u044b \u0434\u0432\u0443\u0445 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0439, \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f . \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443:<\/p>\n<pre><code class=\"python\">a = int(input()) b = int(input())  a2 = a + a % 2 b2 = b - b % 2 even = (b2 + a2) \/\/ 2 * ((b2 - a2) \/\/ 2 + 1)  a1 = a + (1 - a % 2) b1 = b - (1 - b % 2) odd = (b1 + a1) \/\/ 2 * ((b1 - a1) \/\/ 2 + 1)  print(even - odd)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 5.<\/strong> \u0414\u0430\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u0432 \u0433\u043e\u0440\u043e\u0434\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u0442 \u0434\u043e\u043c\u0430 \u0414\u0436\u043e\u043d\u0430\u0442\u0430\u043d\u0430 (\u0414) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413)\u00a0\u2014\u00a0\u043a\u043c<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442 \u0410\u0432\u0442\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0445 (\u0410) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u2014\u00a0\u043a\u043c<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442 \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u0434\u043e \u0411\u0430\u0448\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0435\u0449\u0430\u043d\u0438\u044f\u00a0(\u0411)\u00a0\u2014\u00a0\u043a\u043c<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442 \u0410\u0432\u0442\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0445 (\u0410) \u0434\u043e \u0411\u0430\u0448\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0435\u0449\u0430\u043d\u0438\u044f (\u0411)\u00a0\u2014\u00a0\u043a\u043c<\/p>\n<\/li>\n<li>\n<p>\u043e\u0442 \u0412\u0438\u0440\u0443\u0441\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 (\u0412) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u2014\u00a0\u043a\u043c<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0430\u043c, \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0449\u0438\u043c \u0433\u043e\u0440\u043e\u0434\u0441\u043a\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 (\u0441\u043c\u043e\u0442\u0440\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443). \u041d\u0430 \u043a\u0430\u043a\u043e\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043e\u0442 \u0434\u043e\u043c\u0430 \u0414\u0436\u043e\u043d\u0430\u0442\u0430\u043d\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0412\u0438\u0440\u0443\u0441\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0446\u0435\u043d\u0442\u0440?<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0421\u043b\u043e\u0436\u0438\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043e\u0442 \u0434\u043e\u043c\u0430 \u0414\u0436\u043e\u043d\u0430\u0442\u0430\u043d\u0430 (\u0414) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u0438 \u043e\u0442 \u0412\u0438\u0440\u0443\u0441\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 (\u0412) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413): . \u0411\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0434\u043e\u0440\u043e\u0433\u0430 \u0438 \u0434\u0432\u0430\u0436\u0434\u044b \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0442 \u043d\u0435\u0435 \u043a \u043e\u0444\u0438\u0441\u0443 \u0413\u0432\u0438\u0434\u043e (\u0413).<\/p>\n<p>\u041a \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442 \u0410\u0432\u0442\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0445 (\u0410) \u0434\u043e \u0411\u0430\u0448\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0435\u0449\u0430\u043d\u0438\u044f (\u0411): . \u0411\u0443\u0434\u0443\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u0432\u0441\u0435 \u0442\u0440\u0438 \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f (\u043a \u043e\u0444\u0438\u0441\u0443 \u0413\u0432\u0438\u0434\u043e \u2014  \u0434\u0432\u0430\u0436\u0434\u044b), \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0434\u043e\u0440\u043e\u0433\u0430 \u0442\u043e\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u0430, \u043f\u0440\u0438\u0447\u0435\u043c \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043d\u0430 \u043d\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0438 \u0442\u0440\u0435\u0442\u044c\u0438\u043c \u043e\u0442\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u2014 \u0434\u0432\u0430\u0436\u0434\u044b.<\/p>\n<p>\u0412\u044b\u0447\u0442\u0435\u043c \u0438\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u0432\u0430 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f: \u043e\u0442 \u0410\u0432\u0442\u043e\u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0445 (\u0410) \u0434\u043e \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u0438 \u043e\u0442 \u043e\u0444\u0438\u0441\u0430 \u0413\u0432\u0438\u0434\u043e (\u0413) \u0434\u043e \u0411\u0430\u0448\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0432\u0435\u0449\u0430\u043d\u0438\u044f (\u0411): . \u0422\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0434\u043e\u0440\u043e\u0433\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442 \u0434\u043e\u043c\u0430 \u0414\u0436\u043e\u043d\u0430\u0442\u0430\u043d\u0430 \u0434\u043e \u0412\u0438\u0440\u0443\u0441\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430 \u0440\u0430\u0432\u043d\u043e 19 \u043a\u043c.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442.<\/strong>.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 6.<\/strong> \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u043e\u043c.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0423\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0441 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0431\u0443\u043a\u0432\u0443 <code>X<\/code> \u043d\u0430 \u0446\u0438\u0444\u0440\u0443 , \u0431\u0443\u043a\u0432\u0443 <code>Y<\/code> \u2014 \u043d\u0430 \u0446\u0438\u0444\u0440\u0443 , \u0430 \u0431\u0443\u043a\u0432\u0443 <code>Z<\/code> \u2014 \u043d\u0430 \u0446\u0438\u0444\u0440\u0443 , \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/p>\n<pre><code>00000 00001 00002 00010<\/code><\/pre>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u043e\u043c\u0435\u0440\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 , \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0443\u043b\u044f\u043c\u0438 \u0434\u043e \u043f\u044f\u0442\u0438 \u0446\u0438\u0444\u0440. \u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043c \u0447\u0438\u0441\u043b\u043e\u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0437\u0430\u0434\u0430\u0447\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0430 <code>ZXYZY<\/code>.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> ZXYZY.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 7.<\/strong> \u0412 \u0434\u0430\u043b\u0435\u043a\u043e\u043c\u00a0\u0433\u043e\u0434\u0443 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u0431\u0430\u043d\u043a\u0430 \u0441\u043b\u043e\u043c\u0430\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442 \u0432\u044b\u0434\u0430\u0447\u0438 \u0442\u0430\u043b\u043e\u043d\u043e\u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0414\u0436\u0435\u0439\u043c\u0441 \u0441\u0442\u0430\u043b \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043b\u043e\u043d\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0432\u0432\u043e\u0434\u044f \u043d\u043e\u043c\u0435\u0440\u0430 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u0435\u0447\u0430\u0442\u0438. \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u0435\u043d\u044c \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0439 \u043e\u0444\u0438\u0441 \u0437\u0430\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b \u0443 \u0414\u0436\u0435\u0439\u043c\u0441\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0431\u0430\u043d\u043a\u0430 \u0437\u0430 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0439 \u0434\u0435\u043d\u044c, \u0432\u0435\u0434\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u043a\u0430 \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0430 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442. \u0414\u0436\u0435\u0439\u043c\u0441 \u0441\u0445\u0432\u0430\u0442\u0438\u043b\u0441\u044f \u0437\u0430 \u0433\u043e\u043b\u043e\u0432\u0443: \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u044b\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u043b\u043e\u043d\u043e\u0432 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0441\u044f! \u041e\u0434\u043d\u0430\u043a\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043e\u0442\u00a0\u0434\u043e\u00a0\u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435. \u041e\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u044b \u0432\u0438\u0434\u0438\u0448\u044c \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430. \u0422\u0430\u043a \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0431\u044b\u043b\u043e \u0432 \u0431\u0430\u043d\u043a\u0435 \u0432 \u0442\u043e\u0442 \u0437\u043b\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u044b\u0439 \u0434\u0435\u043d\u044c, \u0435\u0441\u043b\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0434\u043d\u044f \u0432\u044b\u0434\u0430\u0447\u0430 \u0442\u0430\u043b\u043e\u043d\u043e\u0432 \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0441 \u043d\u043e\u043c\u0435\u0440\u0430\u00a0?  <\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0414\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0443 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0446\u0438\u0444\u0440.<\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"python\">n = 10000 digits = dict.fromkeys(range(10), 0)  for num in range(1, n):     for i in map(int, str(num)):         digits[i] += 1     if digits[0] == 1229 and digits[9] == 1237:         print(digits)         print(num)<\/code><\/pre>\n<p>\u0432\u044b\u0432\u043e\u0434\u0438\u0442:<\/p>\n<pre><code>{0: 1229, 1: 2338, 2: 2240, 3: 2240, 4: 1438, 5: 1240, 6: 1240, 7: 1240, 8: 1239, 9: 1237} 4197<\/code><\/pre>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> .<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 8.<\/strong> \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0436\u0430\u0442\u044c \u043f\u044f\u0442\u044c \u043a\u043b\u0430\u0432\u0438\u0448 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0431\u043e\u0440 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043d\u0430\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435, \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044b \u043d\u0430 \u0441\u0435\u043d\u0441\u043e\u0440\u0435.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0415\u0441\u043b\u0438 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043b\u0430\u0432\u0438\u0448\u0438 <code>74852<\/code>, \u0442\u043e \u043d\u0430 \u0441\u0435\u043d\u0441\u043e\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043d\u0430\u0431\u043e\u0440: <code>48527<\/code>.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> 74852 (\u0446\u0438\u0444\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435).<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 8.<\/strong> \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"python\">n = int(input())  result = 0 for i in range(n):     for j in range(2*n):         result += j + i  print(result)<\/code><\/pre>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438\u043c\u0435\u0435\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u0447\u043d\u0443\u044e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c . \u0415\u0433\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0438\u043c\u0435\u043b \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u0443\u044e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c :<\/p>\n<pre><code class=\"python\">n = int(input())  result = n**2 * (3 * n - 2)  print(result)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 9.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043e\u0434\u043d\u043e \u0446\u0435\u043b\u043e\u0435 \u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0<code>s<\/code>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e\u00a0\u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0442\u00a0\u0434\u043e\u00a0\u0441 \u0441\u0443\u043c\u043c\u043e\u0439 \u0446\u0438\u0444\u0440\u00a0<code>s<\/code>.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u0432\u0435\u0441\u0442\u0430 \u0440\u0435\u0448\u0430\u043b\u0438 \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u0442\u0440\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445.<\/p>\n<p>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code class=\"python\">def count_numbers(s):     dp = [[0 for _ in range(s + 1)] for _ in range(13)]     dp[0][0] = 1     for i in range(1, 13):         for j in range(s + 1):             for k in range(10):                 if j >= k:                     dp[i][j] += dp[i - 1][j - k]     return dp[12][s]  s = int(input()) print(count_numbers(s))<\/code><\/pre>\n<p>\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u044f:<\/p>\n<pre><code class=\"python\">from functools import lru_cache   @lru_cache(maxsize=None) def func(digit_sum: int, number_length: int):     if number_length == 0:         return 0     if 0 &lt;= digit_sum &lt;= 9 and number_length == 1:         return 1      res = 0     for d in range(10):         if digit_sum - d >= 0:             res += func(digit_sum - d, number_length - 1)      return res   s = int(input()) print(func(s, 12))<\/code><\/pre>\n<p><a href=\"https:\/\/ru.algorithmica.org\/cs\/decomposition\/mitm\/\" rel=\"noopener noreferrer nofollow\">Meet in the middle<\/a>:<\/p>\n<pre><code class=\"python\">from collections import defaultdict  def get_sum(num):     return sum(map(int, str(num)))   n = 10**6  s = int(input()) di = defaultdict(int)  for i in range(n):     di[get_sum(i)] += 1  total = 0  for i in range(n):     ss = get_sum(i)     if s - ss >= 0:         total += di[s - ss]  print(total)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 10.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0433\u0430\u0434\u0430\u0442\u044c \u043a\u0440\u043e\u0441\u0441\u0432\u043e\u0440\u0434 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043b\u043e\u0432\u043e \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438.<\/p>\n<ol>\n<li>\n<p>\u041c\u0435\u0442\u043e\u0434\u0438\u043a\u0430 \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0433\u043e\u043b\u043e\u0441\u0430, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0435. \u0412\u0438\u0434\u0435\u043e\u0440\u043e\u043b\u0438\u043a\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u044d\u0442\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 Youtube \u0438\u043b\u0438 Tiktok.<\/p>\n<\/li>\n<li>\n<p>\u0427\u0435\u0442\u043a\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0448\u0430\u0433\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u043c\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u0442\u043e\u0434 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0438\u043c\u0438\u0442\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u043e\u0437\u0433\u0430.\u00a0<\/p>\n<\/li>\n<li>\n<p>\u0412\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e: &#171;<em>OpenAI \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 __ \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u0441\u0435 \u0437\u043d\u0430\u044e\u0442 \u043a\u0430\u043a ChatGPT&#187;.<\/em><\/p>\n<\/li>\n<li>\n<p>\u0414\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u0441\u043c\u044b\u0441\u043b\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435\u00a0\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043d\u043e\u0432\u043e\u0433\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u0435\u043c\u0443 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u044f\u0437\u044b\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0437\u0430\u0434\u0430\u0447\u0438. \u0422\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b \u0432 Telegram.<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0421\u043b\u043e\u0432\u043e \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 \u2014  \u041f\u0420\u041e\u041c\u041f\u0422.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> \u041f\u0420\u041e\u041c\u041f\u0422.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 11.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043e\u0434\u043d\u043e \u0446\u0435\u043b\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0<code>n<\/code>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0446\u0435\u043b\u044b\u0445 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u043d\u0435 \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u00a0<code>n<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e \u0438\u0437 \u0447\u0438\u0441\u0435\u043b\u00a0\u0438\u00a0.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f:<\/p>\n<pre><code class=\"python\">n = int(input())  print(n - n\/\/2 - n\/\/3 - n\/\/5 + n\/\/6 + n\/\/10 + n\/\/15 - n\/\/30)<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 12.<\/strong> \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430. \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0435\u0435 \u043d\u0430\u0439\u0442\u0438 \u0438 \u0440\u0435\u0448\u0438\u0442\u044c.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d \u0442\u0435\u043a\u0441\u0442: <strong>\u0414\u0416\u041e\u041d\u0410\u0422\u041e\u041d \u041d\u0410\u041f\u0418\u0428\u0418\u0422\u0415 \u0412 \u041e\u0422\u0412\u0415\u0422\u0415 \u041f\u0415\u0420\u0412\u042b\u0415 \u0412\u041e\u0421\u0415\u041c\u041d\u0410\u0414\u0426\u0410\u0422\u042c \u0426\u0418\u0424\u0420 \u0427\u0418\u0421\u041b\u0410 \u041f\u0418 \u041f\u041e\u0421\u041b\u0415 \u0417\u0410\u041f\u042f\u0422\u041e\u0419<\/strong>. \u0414\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9A%D1%80%D0%B8%D0%B2%D0%B0%D1%8F_%D0%9F%D0%B5%D0%B0%D0%BD%D0%BE\" rel=\"noopener noreferrer nofollow\">\u043a\u0440\u0438\u0432\u0430\u044f \u041f\u0435\u0430\u043d\u043e<\/a>, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong>.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 13.<\/strong> \u0422\u0430 \u0441\u0430\u043c\u0430\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430. \u0415\u0435 \u0440\u0430\u0437\u0431\u043e\u0440 \u0431\u044b\u043b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u043d\u0435\u0434\u0435\u043b\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c <a href=\"https:\/\/habr.com\/ru\/articles\/803809\/\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0441\u0442\u0435 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435<\/a>.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 14.<\/strong> \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0448\u0438\u0442\u044c \u0440\u0435\u0431\u0443\u0441.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u0412 \u0440\u0435\u0431\u0443\u0441\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u043e\u0432\u043e <strong>\u0425\u0415\u0428\u0418\u0420\u041e\u0412\u0410\u041d\u0418\u0415<\/strong>.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> \u0425\u0415\u0428\u0418\u0420\u041e\u0412\u0410\u041d\u0418\u0415.<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 15.<\/strong> \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u0447\u0438\u0441\u0435\u043b <strong>\u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0447\u0438\u0441\u043b\u043e.<\/strong><\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong> \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u0437\u0430\u0434\u0430\u0447 \u21161-14 \u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0447\u0438\u0441\u043b\u043e. \u0421\u043f\u0438\u0441\u043e\u043a \u0447\u0438\u0441\u0435\u043b \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: <code>0, 9, 7, 3, 5, 3, 8, 3, 7, 97, 4, 2, 9, 61, 5<\/code>. \u041d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u2014 \u044d\u0442\u043e .<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong>.<\/p>\n<p>\u041f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0438 \u043a\u0432\u0435\u0441\u0442\u0430 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u044b \u0432 \u043d\u0430\u0448\u0435\u043c <a href=\"https:\/\/t.me\/pygen_ru\/1199\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b\u0435<\/a>. ?  <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/805831\/\"> https:\/\/habr.com\/ru\/articles\/805831\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-372917","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/372917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=372917"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/372917\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=372917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=372917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=372917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}