/* 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
	{
		float a=4, b=8 ;
		int i=2, j=16 ;
		double sol1, sol2, sol3, sol4;
		sol1=(a+2*b/j);
		sol2=(a/(b-4)+i);
		sol3=-(b-i/j);
		sol4=(i*a+j/b);
		System.out.println(sol1);
		System.out.println(sol2);
		System.out.println(sol3);
		System.out.println(sol4);
	}
}