Number of Pencils

Problem

One dozen pencils is 12. Write a program that calculates the number of pencils needed when N students enter the number of students, assuming that one pencil is distributed to each student.

input

A natural number N less than or equal to 1000 is entered in the first line.

25

178

output

Print the number of dozen you need on the first line.

3

15

Solution

using Math.ceil()

function solution(n) {
	let answer = Math.ceil(n / 12);
	return answer;
}