#K36127. Counting Stars
Counting Stars
Counting Stars
Tina loves gazing at the night sky and counting the stars. However, instead of counting every star, she follows a special pattern: she counts every ( k^{th} ) star from a total of ( n ) visible stars. Mathematically, the number of stars counted can be determined by computing ( \lceil \frac{n}{k} \rceil ), which is equivalent to ( \frac{n + k - 1}{k} ) using integer division. Given the total number of stars ( n ) and the counting interval ( k ), your task is to determine how many stars Tina will count.
inputFormat
The input consists of a single line containing two space-separated positive integers ( n ) and ( k ), where ( n ) is the total number of visible stars and ( k ) is the counting interval.
outputFormat
Output a single integer representing the number of stars Tina will count.## sample
10 3
4