using System;
public class Program {
public static void Main() {
var x = Double.MaxValue;
double y = 0;
if (!Double.IsPositiveInfinity(x * 2)) {
y = x * 2;
}
Console.Write(y);