assert 1 <= int(input()) <= 2 ** 30