## UTS Open '21 P1 - COVID Party

View as PDF

Points: 5 (partial)
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type

Sava and his friends are organizing a party in celebration of his first 15-point solve on DMOJ. The people can each be represented as a point in a 2-D plane. Due to health concerns, they must party abiding the new Manhattan social distance rule. The rule states that the Manhattan distance between any people must be no less than . For reference, the Manhattan distance between points , is . Since the venue Sava is renting only provides square-shaped rooms in integer dimensions, he is curious as to what the minimum possible is such that it is possible for the people attending the party to arrange themselves in the room abiding the Manhattan social distance rule. Please write a program to help him out.

#### Constraints

For this problem, you MUST pass the sample cases in order to receive points. In addition, you must pass all previous subtasks to earn points for a specific subtask.

#### Input Specification

The first and only line contains an integer , the number of people attending the party.

#### Output Specification

Output one line containing the minimum possible integer such that people can fit in a square-shaped room abiding the Manhattan social distance rule.

#### Sample Input 1

3

#### Sample Output 1

2

#### Explanation for Sample 1

The following diagram depicts a possible arrangement of the people in a room abiding the Manhattan social distance rule. Note that it is possible for a person to position themselves directly on the borders of the room.

It can be proven that people cannot fit in a room abiding the Manhattan social distance rule, so is our final answer.

#### Sample Input 2

13

#### Sample Output 2

4