String_with_grades = input () fives = 0 for symbol in string with_ _grades: if symbol == '5': fives = fives + 1 print (fives)