import md5 m = md5.new(raw_input()) m = md5.new(m.hexdigest()) print m.hexdigest()