#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    long long int mn = 1e18;
    for (long long int i = 0; i < 5; i++) {
      for (long long int j = 0; j < 5; j++) {
        long long int tt = i * 15 + j * 20;
        long long int rem = n - i * 6 - j * 8;
        if (rem > 0) {
          tt += 25 * ((rem + 9) / 10);
        }
        mn = min(mn, tt);
      }
    }
    cout << mn << endl;
  }
}
