//Do not declare variable marks.
//Write your code below this line.

var map = ['FF','DD','CD','CC','BC','BB','AB','AA'];
i = Math.floor(marks / 10);
i = Math.min(i, 9)
i = Math.max(i, 3)
console.log(map[i - 2]);