you & mdash; A new clerk in the famous guild of heroes. The head of the guild has developed a new system for assessing the potential of recruits & mdash; "Force index." This system helps to quickly determine how promising the new guild member is. You are instructed to create a calculator program for automatically calculating this index.
rn
the calculation of "index Forces ":
rn
rn - the index is calculated based on the main characteristics of the hero: strength, dexterity, intelligence and TM
rn - the sum of the squares & nbsp; all the conveyed characteristics.
rn - an important condition from the head Guilds: & nbsp; characteristics, the value of which & nbsp; is less than 5 are considered insignificant for a beginner and & nbsp; are not taken into account & nbsp; in the calculation. Also, any negative or zero values should be ignored.
rn Ol> rn your task:
Write a program that first requests the number of characteristics for the assessment, and then the values of these characteristics. The program should calculate the "force index" according to the rules and derive the final result.
Input format
pipe line: the number of characteristics for input (an integer, & nbsp; int ).
Subsequent lines: the value of each characteristic (an integer, & nbsp; int Сode>), one number per line.
Output format
final "power index" (an integer, & nbsp; int ).
Hint
There will be no clue here, decide for yourself!