print([998244349,4][int(input()[-1])%2])