#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
 int wari(int a,int b) {
   if(a%b==0)
     return a/b;
   else
     return a/b+1;
 }
 int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
 int souwa(int a){
  return a*(a+1)/2;
 }
 int lcm(int a,int b){
  int d=a,e=b;
  if(a<b)
    swap(a,b);
  int c,d=1;
  while(d){
    c=a%b;
    if(c==0){
      int f=a;
      d--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
signed main(){
  int a,b;
  cin>>a>>b;
  cout<<3*a<<endl;
}