#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
using namespace std;
 
int main(){
  int a,b,c,d,e;
  int list[] = {a,b,c,d,e};
  cin >> a >> b >> c >> d >> e;
  for(x : list){
    cout << (floor(x / 10) + 1) * 10 << endl;
  }
}