Please help me with the task: "Exam task Closest to 23"

Hello, I’m working on this task:

Write a program to check which of three given integers is the nearest value to 23. Read three numbers, each from a new line, and output the result to another new line as well. For example:
>153
>-2
>66
-2

Here is my code:


namespace Exam
{
   class ClosestTo23
   {
       static void Main()
       {
           // Write your code here
       }
   }
}

Can anyone please help me to solve it?