{"raw_statement":[{"iden":"statement","content":"To make a paper airplane, one has to use a rectangular piece of paper. From a sheet of standard size you can make $s$ airplanes.\n\nA group of $k$ people decided to make $n$ airplanes each. They are going to buy several packs of paper, each of them containing $p$ sheets, and then distribute the sheets between the people. Each person should have enough sheets to make $n$ airplanes. How many packs should they buy?"},{"iden":"input","content":"The only line contains four integers $k$, $n$, $s$, $p$ ($1 \\le k, n, s, p \\le 10^4$) — the number of people, the number of airplanes each should make, the number of airplanes that can be made using one sheet and the number of sheets in one pack, respectively."},{"iden":"output","content":"Print a single integer — the minimum number of packs they should buy."},{"iden":"examples","content":"Input\n\n5 3 2 3\n\nOutput\n\n4\n\nInput\n\n5 3 100 1\n\nOutput\n\n5"},{"iden":"note","content":"In the first sample they have to buy $4$ packs of paper: there will be $12$ sheets in total, and giving $2$ sheets to each person is enough to suit everyone's needs.\n\nIn the second sample they have to buy a pack for each person as they can't share sheets."}],"translated_statement":[{"iden":"statement","content":"要制作一架纸飞机，需要使用一张矩形纸。从一张标准尺寸的纸张上可以制作 $s$ 架飞机。\n\n一组 $k$ 个人决定每人制作 $n$ 架飞机。他们打算购买若干包纸，每包包含 $p$ 张纸，然后将纸张分发给每个人。每个人应有足够的纸张来制作 $n$ 架飞机。他们至少需要购买多少包纸？\n\n仅一行包含四个整数 $k$, $n$, $s$, $p$ ($1 lt.eq k, n, s, p lt.eq 10^4$) — 分别表示人数、每人应制作的飞机数、一张纸可制作的飞机数、每包纸的张数。\n\n请输出一个整数 —— 他们应购买的最少包数。\n\n在第一个测试用例中，他们需要购买 $4$ 包纸：总共会有 $12$ 张纸，每人分得 $2$ 张纸已足够满足需求。\n\n在第二个测试用例中，他们必须为每人购买一包纸，因为他们不能共享纸张。"},{"iden":"input","content":"仅一行包含四个整数 $k$, $n$, $s$, $p$ ($1 lt.eq k, n, s, p lt.eq 10^4$) — 分别表示人数、每人应制作的飞机数、一张纸可制作的飞机数、每包纸的张数。"},{"iden":"output","content":"请输出一个整数 —— 他们应购买的最少包数。"},{"iden":"examples","content":"输入\n5 3 2 3\n输出\n4\n\n输入\n5 3 100 1\n输出\n5"},{"iden":"note","content":"在第一个测试用例中，他们需要购买 $4$ 包纸：总共会有 $12$ 张纸，每人分得 $2$ 张纸已足够满足需求。在第二个测试用例中，他们必须为每人购买一包纸，因为他们不能共享纸张。"}],"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ k \\in \\mathbb{Z}^+ $: number of people.  \nLet $ n \\in \\mathbb{Z}^+ $: number of airplanes each person must make.  \nLet $ s \\in \\mathbb{Z}^+ $: number of airplanes producible per sheet.  \nLet $ p \\in \\mathbb{Z}^+ $: number of sheets per pack.  \n\n**Constraints**  \n$ 1 \\leq k, n, s, p \\leq 10^4 $\n\n**Objective**  \nCompute the minimum number of packs $ x \\in \\mathbb{Z}^+ $ such that the total number of sheets $ x \\cdot p $ is sufficient to provide each of the $ k $ people with at least $ \\left\\lceil \\frac{n}{s} \\right\\rceil $ sheets.\n\nThat is, find the smallest integer $ x $ satisfying:  \n$$\nx \\cdot p \\geq k \\cdot \\left\\lceil \\frac{n}{s} \\right\\rceil\n$$\n\nThus,  \n$$\nx = \\left\\lceil \\frac{k \\cdot \\left\\lceil \\frac{n}{s} \\right\\rceil}{p} \\right\\rceil\n$$","simple_statement":null,"has_page_source":false}