We need to read A and B: A dresses, B parties. Yae wants to attend all parties and can bring A dresses, but if B > A, she'll need to reuse dresses. She wants to minimize the maximum number of times she wears the same dress. Essentially, we need to distribute B parties among A dresses as evenly as possible. The maximum frequency of any dress will be ceil(B/A) if we can distribute. But we need to consider that we can choose which dress to wear each party. We can minimize the maximum times a dress is worn by spreading usage evenly. So the minimal possible maximum frequency is ceil(B/A). However, is there any constraint like she must bring exactly A dresses? Actually she can bring "several dresses with her", but the number of dresses she can carry may be smaller than that of party opportunities. So she can bring at most A? The problem says: "She wants to participate in all of them and will carry several dresses with her. But the number of dresses she can carry with her may be smaller than that of the party opportunities. In that case, she has to wear some of her dresses more than once." So she carries some number of dresses, which is presumably the maximum she can carry? Actually it says: "Given the number of dresses and frequency of parties, make a program to determine how she can reduce the maximum frequency of wearing the most reused dress." Input provides A (number of dresses) and B (frequency of parties). So she has A dresses available to bring? Or she can bring at most A dresses? Usually, such problem: A dresses, B parties. You want to wear a different dress each party if possible, but if B > A, you must reuse some dresses. To minimize the maximum number of times any dress is worn, you distribute B parties among A dresses as evenly as possible. So answer = ceil(B/A). Let's test examples: Input 3 5 => ceil(5/3)=2, matches. Input 25 10 => ceil(10/25)=1, matches.
But wait: Could there be nuance? Possibly she could choose not to bring all dresses? If she brings fewer dresses, the maximum usage might be larger? But she wants to minimize the maximum frequency. So she would bring all A dresses to spread usage. So yes.
Thus answer is (B + A - 1) // A.
But constraints: up to 1e5, trivial.
Thus the solution is simple.
But careful: The problem statement: "Given the number of dresses and frequency of parties, make a program to determine how she can reduce the maximum frequency of wearing the most reused dress." Possibly it's asking for the minimum possible maximum frequency. So output that value.
Thus final answer.
But the problem may be from some contest, maybe tricky: Actually sometimes such problems ask: "She wants to reduce the maximum frequency as far as possible." That's exactly ceil(B/A).
Thus just compute.
Edge cases: if A >= B, answer 1 (since she can wear a different dress each party, maximum usage 1). Indeed.
Implementation:
Read ints A, B.
Compute ans = (B + A - 1) // A.
Print ans.
That's it. ```python
import sys
def main():
data = sys.stdin.read().strip().split()
if not data:
return
A, B = map(int, data)
# Minimal possible maximum frequency = ceil(B / A)
ans = (B + A - 1) // A
print(ans)
if name == "main":
main()