{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cstyle type\u003d\u0027text/css\u0027\u003e .input, .output {border: 1px solid #888888;} .output {margin-bottom:1em;position:relative;top:-1px;} .output pre,.input pre {background-color:#EFEFEF;line-height:1.25em;margin:0;padding:0.25em;} .title {background-color:#FFFFFF;border-bottom: 1px solid #888888;font-family:arial;font-weight:bold;padding:0.25em;} \u003c/style\u003e \u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027]], displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027]]}\n });\n \u003c/script\u003e\n \u003cscript type\u003d\"text/javascript\" async\n src\u003d\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\"\u003e\n \u003c/script\u003e\nIn May M\u0026C is celebrating its birthday - the 4th anniversary of working! For this occasion guys of 0 level have decided to cook \"baursaki\". They need following ingredients:\n500 ml of kefir,\n200 ml sour cream,\n1 egg,\n3 tbsp of sugar,\n1 teasp of salt,\n1/2 teasp of baking soda,\n400 gr of flour,\nChildren poured kefir into the bowl, added sour cream, sugar, salt and soda, mixed everything together. Then they beated in an egg and whisk. Added flour and made dough. They left it for half an hour to rise. After that guys divided dough into little pieces and made squares of them - in total N baursaks. Then children had to decide, who and in which order would fry baursaks. Girls Ayanat, Eva, Karina and Zarina volunteered to be first. Ayanat would cook every A-th baursak, Eva every B-th, Karinia evety C-th and Zarina evety D-th baursak. After girls finish frying boys came into the kitchen and saw several uncooked baursaks. Boys needed to cook them on their own. Count how many baursaks girls cooked. "}},{"title":"Input","value":{"format":"HTML","content":"Input data consists of 5 integers A, B, C, D (1 \u003c\u003d A, B, C, D \u003c\u003d 10) and N (1 \u003c\u003d N \u003c\u003d 10^5). Each number must be in a separate line. "}},{"title":"Output","value":{"format":"HTML","content":"Print the number of fried baursaks that girls had cooked before boys came into the kitchen."}},{"title":"Examples","value":{"format":"HTML","content":"\u003cdiv class\u003d\"sample-test\"\u003e \n \u003cdiv class\u003d\"input\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e1\u003cbr\u003e2\u003cbr\u003e3\u003cbr\u003e4\u003cbr\u003e12\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"output\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e \n \u003cpre\u003e12\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"input\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e2\u003cbr\u003e3\u003cbr\u003e4\u003cbr\u003e5\u003cbr\u003e24\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"output\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e \n \u003cpre\u003e17\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}}]}