문제

링크

풀이

h0 = int(input())
 
while (3*h0*h0+h0) % 8 != 0:
  h0 += 1
 
print(h0)