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

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		long start = System.currentTimeMillis();
		
		for (int i=0; i<300000; i++)
		{
			String a = "  543,03,14311.34320  320,3254   ".replaceAll("[,. ]+", "");

		}
		
		long end = System.currentTimeMillis();
		
		System.out.println(end-start);
		
	}
}