POJ 3320 Jessica's Reading Problem