using System;
public class Program
{
public static void Main()
//input
double test1= 78;
double test2 = 89;
double final = 90;
//calc
double overallGrade = .3 * test1 + .3 * test2 + .4 * final;
Console.WriteLine("Overall grade is {0}", overallGrade.ToString("F3"));
}