import java.math.BigDecimal;
public class Kewai{
public static void main(String[] args) {
double f = 3.1415927;
BigDecimal b = new BigDecimal(f);
double f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
System.out.println(f1);
}
}