SAC '22 Code Challenge 4 P1 - Obligatory Car Problem
View as PDFThere are  people in Mr. DeMello's car (including himself in the driver seat) with 
 seats in each row. How many people are not adjacent to Mr. DeMello? (Assume that everyone sits as close to Mr. DeMello as possible, and adjacent means either vertically or horizontally at most 
 seat away.)
Input Specification
The first line will contain  
, the number of people in Mr. DeMello's car.
Output Specification
Output the number of people not adjacent to Mr. DeMello.
Sample Input
15
Sample Output
12
Comments