Set .add()

  • + 0 comments

    print(len({input().strip() for _ in range(int(input()))}))