#include <iostream>
using namespace std;

int main() {
	
	float a, b, c;
	
	cin >> a;
	b = a;
	a = a*3;
	cout << a << endl;
	a = a/3;
	c = a - b;
	cout << c << " " << (c == 0) << endl;
	
	// your code goes here
	return 0;
}