def x(n):
	c = n
	i = 0
	f = 0
	while c >= 3:
		i += 1
		c -= 3
	if c == 2:
		i += 1
		c -= 2
	while i >= 12:
		f += 1
		i -= 12
	return f,i

n = input()
f,i = x(n)
print f,i
# for c in range(120,220+1):
# 	f,i = x(c)
# 	print c,'->',f,i