#include <iostream>  
#include <fstream>  
#include <string>
#include<cmath>
using namespace std;

int main() {
    
    ifstream fp_in; 
    ofstream fp_out;
    fp_in.open("DATA1.txt");    
    fp_out.open("OUT1.txt");
    
    int strIn ;
    
    for (int i = 0; i < 5; i++) {
        fp_in >> strIn;
        
        fp_out << floor((9000.0 / (double)strIn) + 0.5) <<"\n";
    }
    
    fp_in.close();
    fp_out.close(); 
    
}

