#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ ss;
typedef int /*<<< orphan*/ s;

/* Variables and functions */
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ *strchr(char *, char);
int main() {
  int pointss = 0;
  char s[100];
  char ss[100];
  memset(s, '0', sizeof(s));
  memset(ss, '0', sizeof(ss));
  scanf("%s", s);
  for (int i = 0; i < 100; ++i) {
    if (strchr(ss, s[i]) == NULL) {
      ss[pointss] = s[i];
      ++pointss;
    }
  }
  for (int ii = 0; ii < 100; ++ii) {
    if (ss[ii] != '0')
      printf("%c", ss[ii]);
    if (ii == 99)
      printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
mov    $0x30,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
lea    -0xe0(%rbp),%rdi
mov    $0x30,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
lea    -0x70(%rbp),%rsi
lea    0xe73(%rip),%rdi
call   1060 <scanf@plt>
movl   $0x0,-0xe4(%rbp)
cmpl   $0x64,-0xe4(%rbp)
jge    1203 <main+0xc3>
lea    -0xe0(%rbp),%rdi
movslq -0xe4(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
jne    11ea <main+0xaa>
movslq -0xe4(%rbp),%rax
mov    -0x70(%rbp,%rax,1),%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0xe0(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11ef <main+0xaf>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
jmp    119c <main+0x5c>
movl   $0x0,-0xe8(%rbp)
cmpl   $0x64,-0xe8(%rbp)
jge    1283 <main+0x143>
movslq -0xe8(%rbp),%rax
movsbl -0xe0(%rbp,%rax,1),%eax
ff
cmp    $0x30,%eax
je     124f <main+0x10f>
movslq -0xe8(%rbp),%rax
movsbl -0xe0(%rbp,%rax,1),%esi
ff
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x63,-0xe8(%rbp)
jne    126a <main+0x12a>
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    126f <main+0x12f>
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    120d <main+0xcd>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xe0,%rsp
lea    0x70(%rsp),%r14
mov    %r14,%rdi
mov    $0x30,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
mov    %rsp,%r15
mov    %r15,%rdi
mov    $0x30,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
lea    0xe81(%rip),%rdi
mov    %r14,%rsi
call   1060 <scanf@plt>
xor    %ebx,%ebx
xor    %r14d,%r14d
jmp    119a <main+0x5a>
xchg   %ax,%ax
add    $0x1,%rbx
cmp    $0x64,%rbx
je     11be <main+0x7e>
movsbl 0x70(%rsp,%rbx,1),%esi
mov    %r15,%rdi
call   1040 <strchr@plt>
test   %rax,%rax
jne    1190 <main+0x50>
movzbl 0x70(%rsp,%rbx,1),%eax
movslq %r14d,%r14
mov    %al,(%rsp,%r14,1)
add    $0x1,%r14d
jmp    1190 <main+0x50>
xor    %ebx,%ebx
jmp    11da <main+0x9a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    $0x64,%rbx
je     11ea <main+0xaa>
movsbl (%rsp,%rbx,1),%edi
cmp    $0x30,%edi
je     11d0 <main+0x90>
call   1030 <putchar@plt>
jmp    11d0 <main+0x90>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%8 = call i32 @memset(i8* %7, i32 48, i32 100)
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%10 = call i32 @memset(i8* %9, i32 48, i32 100)
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %11)
store i32 0, i32* %5
br label %13
13: ; preds = %35, %0
%14 = load i32, i32* %5
%15 = icmp slt i32 %14, 100
br i1 %15, label %16, label %38
16: ; preds = %13
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%18 = load i32, i32* %5
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %19
%21 = load i8, i8* %20
%22 = call i32* @strchr(i8* %17, i8 signext %21)
%23 = icmp eq i32* %22, null
br i1 %23, label %24, label %34
24: ; preds = %16
%25 = load i32, i32* %5
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %26
%28 = load i8, i8* %27
%29 = load i32, i32* %2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %30
store i8 %28, i8* %31
%32 = load i32, i32* %2
%33 = add nsw i32 %32, 1
store i32 %33, i32* %2
br label %34
34: ; preds = %24, %16
br label %35
35: ; preds = %34
%36 = load i32, i32* %5
%37 = add nsw i32 %36, 1
store i32 %37, i32* %5
br label %13
38: ; preds = %13
store i32 0, i32* %6
br label %39
39: ; preds = %62, %38
%40 = load i32, i32* %6
%41 = icmp slt i32 %40, 100
br i1 %41, label %42, label %65
42: ; preds = %39
%43 = load i32, i32* %6
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %44
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 48
br i1 %48, label %49, label %56
49: ; preds = %42
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %51
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %49, %42
%57 = load i32, i32* %6
%58 = icmp eq i32 %57, 99
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %61
61: ; preds = %59, %56
br label %62
62: ; preds = %61
%63 = load i32, i32* %6
%64 = add nsw i32 %63, 1
store i32 %64, i32* %6
br label %39
65: ; preds = %39
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%5 = call i32 @memset(i8* %3, i32 48, i32 100)
%6 = call i32 @memset(i8* %4, i32 48, i32 100)
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
br label %8
8: ; preds = %0, %20
%9 = phi i64 [ 0, %0 ], [ %22, %20 ]
%10 = phi i32 [ 0, %0 ], [ %21, %20 ]
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 %9
%12 = load i8, i8* %11
%13 = call i32* @strchr(i8* %4, i8 signext %12)
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %20
15: ; preds = %8
%16 = load i8, i8* %11
%17 = sext i32 %10 to i64
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %17
store i8 %16, i8* %18
%19 = add nsw i32 %10, 1
br label %20
20: ; preds = %8, %15
%21 = phi i32 [ %19, %15 ], [ %10, %8 ]
%22 = add nuw nsw i64 %9, 1
%23 = icmp eq i64 %22, 100
br i1 %23, label %26, label %8
24: ; preds = %34
%25 = call i32 @putchar(i32 10)
ret i32 0
26: ; preds = %20, %34
%27 = phi i64 [ %36, %34 ], [ 0, %20 ]
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = icmp eq i8 %29, 48
br i1 %30, label %34, label %31
31: ; preds = %26
%32 = sext i8 %29 to i32
%33 = call i32 @putchar(i32 %32)
br label %34
34: ; preds = %31, %26
%35 = icmp eq i64 %27, 99
%36 = add nuw nsw i64 %27, 1
br i1 %35, label %24, label %26
}