#!/usr/bin/env perl
use strict;
use warnings;

my @array;

for my $var (1..3){
    my $input = <STDIN>;
    chomp $input;
    push (@array , $input) ;
}

print sort @array;
