Vedansh accepts Challenge
Practice
0 (0 votes)
Basic programming
Medium
Math
Problem
92% Success 555 Attempts 30 Points 0.2s Time Limit 256MB Memory 1024 KB Max Code
Vedansh has a friend Noel.they always used to roam together . but Noel always used to stuck Vedansh . One day Noel Challenged Vedansh to solve the Mystery Question , but since Vedansh is poor in mathematics , help him to find the solution .
INPUT :
first line of input contains a number N .
OUTPUT:
Find the Mystery and output correct answer in new line.
CONSTRAINTS :
1<=N<=10^50
Hints :
Input : 1
Output : 1
Input : 2
Output : 3
Input : 3
Output : 0
Input : 4
Output : 4
Input : 8
Output : 8
Submissions
Please login to view your submissions
Similar Problems
Points:30
4 votes
Tags:
MathematicsMediumOpenApprovedMathamatics
Points:30
1 votes
Tags:
MediumStringsSimple-math
Points:30
1 votes
Tags:
Medium
Editorial