import java.util.*;
import java.lang.*;
import java.text.*;
 
class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        double d = 50.12345;
        DecimalFormat df = new DecimalFormat("#.##");
        System.out.println(df.format(d));
        
        d = 50.0;
        df = new DecimalFormat("#.##");
        System.out.println(df.format(d));
        
        d = (double) (1*1.000/Integer.parseInt(2+"")/1.000*100);
        df = new DecimalFormat("#.##");
        System.out.print(df.format(d));
        
        }
}