a = list(map(int, input().split())) mx = max(a) mn = min(a) a = map(lambda x: str(mn) if x==mx else str(x), a) print(' '.join(a))