#include using namespace std; int main() { int t; cin>>t; while(t--) { int pt; cin>>pt; if(pt>=100){ if(pt%100<=(10-(pt/100))) cout<<((pt%100)+(pt/100))<