import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Double newValue = new Double(Math.pow(2, 10000)); // crash 
		if(newValue.isInfinite()) System.out.println("INF");
		double Value=Math.pow(2, 10000);
		if(Double.isInfinite(Value)) System.out.println("INF");
	}
}