백준 15894 c++
#include <iostream>
using namespace std;
long input(int lower, int upper);
//int calc_length(int N);
int main(void)
{
long int N;// , total_length;
N = input(1, 1000000000);
//total_length = calc_length(N);
cout << 4*N << endl;
return 0;
}
long input(int lower, int upper)
{
long A;
while (1)
{
cin >> A;
if (A >= lower && A <= upper)
{
break;
}
else
{
;
}
}
return A;
}
//int calc_length(int N)
//{
// int total;
// //int up, bottom, side;
//
// //bottom = N;
// //up = N;
// //side = N * 2;
// //total = up + bottom + side;
// total = 4 * N;
//
// return total;
//}