#include <bits/stdc++.h> using namespace std; int main(){int n,a;cin>>n;while(n--){cin>>a;cout<<(a+5)/10*10<<"\n";}}