I am studying this algorithm on Code Forces:

http://codeforces.com/problemset/problem/1/A

Why do most solutions simply multiply the standard input by 3 and divide by 2?
...