cases from input