import java.util.Scanner; import java.util.regex.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String src = sc.nextLine(); Matcher matcher = Pattern.compile("-?\\d+").matcher(src); matcher.find(); int f...