Solve 7n By 8

easy
1. You are given a number n.
2. You have to calculate the value of 7n/8 without using division and multiplication.

Input Format

A number n

Output Format

Check the sample ouput and question video.

Constraints

1 <= n <= 10^9

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
15
Output
13
Previous
Is A Power Of 2
Next
Swap All Odd And Even Bits

Related Questions