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?
http://codeforces.com/problemset/status/1/problem/A
It seems to simple, but why does it work?