CF597C Subsequences