1.


/*
Brielbeck u. Weber
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException
{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String input;
String[] temp;
int v;
int t;
while ((input=in.readLine())!=null)
{
temp = input.split(" ");
v = Integer.parseInt(temp[0]);
t = Integer.parseInt(temp[1]);
System.out.println(v*t*2);
}
}
}


2.


/**
* Angewandte Mathematik, SS11
* Problem: 10071 Back to High School Physics
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=1012
*
* @author Unverzart Michael
* @author Wurth Manuel
* @version 1.0, 23/3/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.960
*/

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

public static void main(String[] args) throws Exception{

BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

String inputLine;

while((inputLine = reader.readLine()) != null){

StringTokenizer st = new StringTokenizer(inputLine);

int a = new Integer(st.nextToken());
int b = new Integer(st.nextToken());

System.out.println(a*b*2);
}
}
}

3.

/**
* Angewandte Mathematik, SS11
* Problem: 10071 Back to the School Physics
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=1012
*
* @author Benedikt Z¨nnchen
* @author Erik Wenzel
* @version 1.2, 03/24/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 1.476
*/

import java.util.Scanner;


public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
while(sc.hasNextInt())
{
System.out.println(sc.nextInt()*sc.nextInt()*2);
}
sc.close();
}
}

3.



/**


 * Angewandte Mathematik, SS11


 * Problem: 11172 Relational Operator



 *


 * @author Christopher Westerfield


 * @version 1.0, 03/20/2011


 *


 * Method : Ad-Hoc


 * Status : Accepted


 * Runtime: 0.100


 */


 

import java.util.*;


  


class Main


{


    public static void main(String args[]){


            Scanner scanner = new Scanner(System.in);


            String input = scanner.nextLine();


            StringTokenizer st = new StringTokenizer(input);


            int a = 0;


            int b = 0;


            if(st.hasMoreTokens()){


                a = Integer.parseInt(st.nextToken());


            }


            if(st.hasMoreTokens()){


                b = Integer.parseInt(st.nextToken());


            }


            System.out.println("A: "+a);


            System.out.println("B: "+b);


            int r = a*b*2;


            System.out.println(""+r);


    }


}





-------------------------------------
1.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, WS10/11
* Problem: ##10071 ## Back to high school physics
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=94&problem=1012&mosmsg=Submission+received+with+ID+8319322
*
* @author Felix Dietrich
* @version 1.0, 14.10.2010
*
* Method : Easy physics
* Status : Accepted
* Runtime: 1.232
*/

import java.util.Scanner;

public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);

while (sc.hasNext())
{
int v = sc.nextInt();
int t = sc.nextInt();

System.out.println(v * t * 2);
}
}
}

2.

import java.io.*;
import java.util.*;

class Main {

public static void main(String...args) throws Exception
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String input;
String s[];
long t;

while( (input = reader.readLine()) != null)
{
s = input.split(" ");
t = 2*Long.parseLong(s[0])*Long.parseLong(s[1]);
System.out.println(t);
}
}
}