/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
    public static void main (String[] args) throws java.lang.Exception {
        String s = get();
        System.out.println(s);
    }

    static <T> T get() {
        return coalesce();
    }

    //@SafeVarargs NOT SAFE!
    public static <T> T coalesce(T ... args) {
        for(T i : args) {
            if(i != null) {
                return i;
            }
        }
        T newInstance = null;
        try {
            final Class<? extends Object[]> arrayClass = args.getClass();
            final Class<?> componentType = arrayClass.getComponentType();
            newInstance = (T) componentType.newInstance();
        }catch(Exception e) {
            e.printStackTrace();
        }
        return newInstance;
    }
}