#include<bits/stdc++.h>
using namespace std;
int main() {
	float n;
	cin>>n;
	cout<<n<<endl<<n+8<<endl<<n+8-2<<endl;
	printf("%.1f",(n+(n+8)+(n+8-2))/3.0);
}
/**************************************************************
	Problem: 1612
	User: linzihang
	Language: C++
	Result: Accepted
	Time:12 ms
	Memory:2072 kb
****************************************************************/