Trouble With Three
Author: Nazmul Alam
You will be given a number N. Calculate N%3.
Input Format
The only line contains a number N, N<=10^1000.
Output Format
Print N%3 on a new line.
Don’t forget the ending new line.Samples
Input
10
Output
1
Explanation: 10%3 is 1
Limits
Language | Time | Memory |
GNU C 11 | 1s | 512MB |
GNU C++ 14 | 1s | 512MB |
GNU C++ 11 | 1s | 512MB |
PHP 7 | 1s | 1024MB |
Java (OpenJDK 8) | 1s | 4096MB |
Statistics