// The "P2" class.
import java.awt.*;
import java.io.*;
public class P2
{
    public static void main (String[] args) throws IOException
    {
    BufferedReader in = new BufferedReader (new FileReader ("DATA2.txt"));
    PrintWriter out = new PrintWriter (new FileWriter("OUT2.txt"));
    int x=0;
    String  temp;
    for (int y =0; y<5;y++)
    {
    temp = in.readLine();
     x = Integer.parseInt (temp);
    out.println (x+ (x-2)/2);
    }
       out.close(); // Place your code here
    } // main method
} // P2 class

