#include <bits/stdc++.h>
using namespace std;
int main(){
int x,k,j;
float h;
cin>>x;
k=x*3;
j=k-8;
h=(x+k+j)/3.0;
cout<<k<<endl;
cout<<j<<endl;
printf("%.1f",h);
}
/**************************************************************
Problem: 1601
User: tonghuawei
Language: C++
Result: Accepted
Time:7 ms
Memory:2072 kb
****************************************************************/