#! /usr/bin/env python3
print("Problem:")
print("  Write a Python program which accepts the user's first and last name and print them in reverse order with a space between them. ")
print("Solution:")
def rev(name):
def rev(name):

  revname=''
  for c in name:
	  revname=c+revname
  return revname
  
print(rev(input()))

	

4f8d4cd5f3418b57c8b6df8fcc5c6a4293090464
#! /usr/bin/env python3
print("Problem:")
print("  Write a Python program which accepts the user's first and last name and print them in reverse order with a space between them. ")
print("Solution:")
def rev(name):
def rev(name):

  revname=''
  for c in name:
	  revname=c+revname
  return revname
  
print(rev(input()))

	
