You are a member of the Brave Seekers of Unicorns (BSU), the secret magical order. The BSU is fond of seeking unicorns. Recently, they have agreed to call an array a_1,a_2,…,a_k of k integers a unicorn if it satisfies the following conditions:
For example, if n=10, then the array \[1,4,5,9] is not a unicorn because 1⊕4⊕5=0, but the array \[2,4,7,9] is a unicorn.
The Grand Master of the BSU has commanded you to calculate the number of unicorns. Since the number can be pretty large, you must compute it modulo 998,244,353.
The only line contains an integer n (1≤n≤106).
Print the number of unicorns modulo 998,244,353.