let ``No.26 シャッフルゲーム`` () = let N = int <| stdin.ReadLine() let M = int <| stdin.ReadLine() let rec f s bit = if s <= 0 then if bit = 4 then 3 else bit else let arr = Array.map int <| stdin.ReadLine().Split(' ') let a,b2 = min arr.[0] arr.[1],max arr.[0] arr.[1] let n = b2 - a let b = 1 <<< (b2 - 1) let c = (((bit&&&b)>>>n)|||((bit&&&a)<< printfn "%A" ``No.26 シャッフルゲーム`` ()