let _ = readLine()
let rate = readLine()!.characters.split(" ").map{Int(String($0))!/400}
let color = Set(rate.filter{$0<8}).count
let other = rate.filter{$0>7}.count
print("\(max(color,1)) \(color+other)")