#include <iostream>
#include <vector>
#include <algorithm> // Required for count()
using namespace std;

int repeats(vector<int> v) {
  int s = 0;
  for(auto& num : v) {
    if(count(v.begin(), v.end(), num) == 1) s += num;
  }
  return s;
}

int main() {
  // Test cases
  vector<int> test1 = {4, 5, 7, 5, 4, 8};
  vector<int> test2 = {9, 10, 19, 13, 19, 13};
  
  cout << repeats(test1) << endl; // Should output 15 (7+8)
  cout << repeats(test2) << endl; // Should output 19 (9+10)
  
  return 0;
}