import java.util.regex.*;

class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        String input = "Host is up (0.0020s latency).";
        Pattern pattern = Pattern.compile("\\((\\d+\\.\\d+)s");
        Matcher matcher = pattern.matcher(input);
        if (matcher.find()) {
            System.out.println(matcher.group(1));
        }
    }
}