class rev:
    def rever(self,lst):
        self.lst=lst
        lst2=self.lst[::-1]
        print(' '.join(lst2))

inp=input("enter the string: ")
lst=inp.split()
a=rev()
a.rever(lst)

8d588bc827f9fd89deab16c8263f4222f9171bac
class rev:
    <mask token>


<mask token>

class rev:

    def rever(self, lst):
        self.lst = lst
        lst2 = self.lst[::-1]
        print(' '.join(lst2))


<mask token>

class rev:

    def rever(self, lst):
        self.lst = lst
        lst2 = self.lst[::-1]
        print(' '.join(lst2))


<mask token>
a.rever(lst)

class rev:

    def rever(self, lst):
        self.lst = lst
        lst2 = self.lst[::-1]
        print(' '.join(lst2))


inp = input('enter the string: ')
lst = inp.split()
a = rev()
a.rever(lst)

class rev:
    def rever(self,lst):
        self.lst=lst
        lst2=self.lst[::-1]
        print(' '.join(lst2))

inp=input("enter the string: ")
lst=inp.split()
a=rev()
a.rever(lst)
