Loading...
Hard Math
Time: 1 s
Memory: 125 MB

Sohag loves maths so his brother Sohag2 gave him a math problem to solve.
He gave Sohag an integer \(X\) and told him to do the following operation \( 10^{100^{100}} \) times:

Multiply the current number by \(3\).
Add \(3\) to the result
Multiply the result by \(2\)
Divide the result by \(6\).
Subtract \(1\) from the answer.
Sohag will be calculating this until the heat death of the universe. But can you write a code to get the answer faster?
Input
The first line contains an integer \(X\).
Constraint
 It is given that  \(-3 \times 10^6 \leq X \leq 3 \times 10^6 \)
Output
Print the output after all the operations
Examples
Input
Output
0
0
Notes
লোভে পাপ, পাপে মৃত্যু
Problem Info
Problem ID 376
Time Limit 1000 ms
Memory Limit 128000 KB
Moderators Dr_KeK , amirhozaifa , meheraj_hossain_ , lauhemahfus , osama_bq , tafsiruzzaman , refred1 , sagorahmedmunna , Rakib
Statistics
Submit
You need to Login or Registration for submit your solution