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

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String inputLine = "What is the weather in 75042?";
		Pattern pattern = Pattern.compile("weather\\D*(\\d+)");
        Matcher matcher = pattern.matcher(inputLine);

        if (matcher.find()) {
            System.out.println(matcher.group(1));
        }

	}
}