This problem has been modified to allow for subtask grading.
Subtask 1 (40%): 3 <= N <= 100
Subtask 2 (60%): No additional constraints
Subtask 3 (0%): Sample Testcases
You're not logged in! Click here to login