#!/usr/bin/python # -*- coding: utf-8 -*- N = list(raw_input()) N.sort() N.reverse() print ''.join(N)