#!/bin/ruby gets arr = gets.split.map(&:to_i) puts arr.count(arr.max)