/* 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
	{
		double d = -542.347543274623876;
		System.out.println(d);
		int n = 2; // decimal digits
		
		double p = Math.pow(10,n);
		d = Math.floor((int)(p*d))/p;
		System.out.println(d);
	}
}