import sys
input = sys.stdin.readline
t = int(input())
time = [300,60,10]
result = []
for i in time:
result.append(t//i)
t = t%i
if t == 0:
print(*result)
else:
print(-1)
'문제풀이 > 백준(Boj) 문제풀이' 카테고리의 다른 글
[백준][그리디 알고리즘] 1789. 수들의 합(파이썬/Python) (0) | 2021.10.02 |
---|---|
[백준][그리디 알고리즘] 1946. 신입 사원(파이썬/Python) (0) | 2021.09.30 |
[백준][그리디 알고리즘] 5585. 거스름돈(파이썬/Python) (0) | 2021.09.30 |
[백준][그리디 알고리즘] 1026. 보물(파이썬/Python) (0) | 2021.09.30 |
[백준][수학/문자열/정렬] 1755. 숫자놀이 (파이썬/Python) (0) | 2021.09.30 |