[tex]\tt x=int(input("Enter\:first\:no:"))[/tex]
[tex]\tt y=int(input("Enter\:second\:no:"))[/tex]
[tex]\tt z=int(input("Enter\:third\:no:"))[/tex]
[tex]\tt for\:x\:in\: range (3):[/tex]
[tex]\quad\tt for\:y\:in\:range(3):[/tex]
[tex]\quad\quad\tt for\:z\:in\:range(3):[/tex]
[tex]\quad\quad\quad\tt if\:x!=y\:and\:y!=z\:and\:z!=x:[/tex]
[tex]\quad\quad\quad\quad\tt print(x,y,z)[/tex]