---
# System prepended metadata

title: e835. p2.表演座位 (Seats)

---

## 題目連結[e835](https://zerojudge.tw/ShowProblem?problemid=e835)
我一開始是寫座位號碼整除每排人數再加一就是排數，然後號碼取餘每排人數就是每排位數，但如果取餘數是零時，每排位數應該是25或50，所以要再另外寫。
```python=
n = int(input())
s = 0
r = 0
l = 0

if n <= 2500:
    s = 1
    if n%25 == 0:
        r = (n // 25 )
        l = 25
    else:
        r = (n // 25 )+1
        l = n % 25
elif n <= 7500:
    s = 2
    if n%50 == 0:
        r = ((n-2500) // 50)
        l = 50
    else:
        r = ((n-2500) // 50)+1
        l = (n-2500) % 50
else:
    s = 3
    if n%25 == 0:
        r = ((n-7500) // 25)
        l = 25
    else:
        r = ((n-7500) // 25)+1
        l = (n-7500) % 25

print(s,r,l)
```