#include <fstream>
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <cmath>
using namespace std;

int main () 
{
	float a,b;
	ifstream in("DATA1.txt");
	ofstream out("OUT1.txt");
	for (int i= 1; i <= 5; i++)
{
	in >> a;
	b = a/0.69;
	//cout << b<<endl;
	b = b/1000;
	//cout << b<<endl;
	b = ceil(b);
	//cout << b<<endl;
	b = b *1000;
	//cout << b<<endl;
	out << b <<endl;
}	
	return 0;
}
