#include <bits/stdc++.h>
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 (int x : list) {
    cout << (floor(x / 10) + 1) * 10 << endl;
  }
}
