#include <iostream>
#include <set>
using namespace std;

int main() {
    set<int> s;
    s.insert(30);
    s.insert(10);
    s.insert(20);
    s.insert(10); // 중복 데이터 삽입 시도 (무시됨)

    // 크기 출력
    printf("%d\n", s.size()); // 중복이 제거되어 3이 출력됨

    // 데이터 존재 여부 확인 (count 함수)
    printf("%zu\n", s.count(20)); // 존재하므로 1
    printf("%zu\n", s.count(50)); // 존재하지 않으므로 0

    // 데이터 삭제
    s.erase(20);
    printf("%d\n", s.size()); // 2 출력
}