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