#include <bits/stdc++.h>   using namespace std;   int t[10], card[105];   int main() {     int i, sum, ans;     sum = 0;     for (i = 1; i <= 5; i++) {       cin >> t[i];       sum = sum + t[i];       card[t[i]]++;     }     ans = sum;     for (i = 100; i >= 1; i--) {       if (card[i] == 2) {         if (sum - 2 * i < ans) ans = sum - 2 * i;       }       if (card[i] >= 3) {         if (sum - 3 * i < ans) ans = sum - 3 * i;       }     }     cout << ans << endl;     return 0;   }   