题目描述 数列 a 满足:a0=0,a1=1;当下标为偶数时 a2m=am,下标为奇数时 a2m+1=am+am+1。求 an。 输入格式 一行一个整数 n。 输出格式 一行一个整数,an 的值。 样例 输入 5 输出 3 数据范围 0≤n≤106