uva 1121 , subsequence