when did patient 12181 receive the last intake on the first icu visit?
select inputevents_cv.charttime from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12181 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) order by inputevents_cv.charttime desc limit 1