def inp(x):
    return x[-1]+x[1:]+x[0]

print(inp("abcd"))
76c40754adab57ae3656428d2ab6f9646a7fec4b
<mask token>

def inp(x):
    return x[-1] + x[1:] + x[0]


<mask token>

def inp(x):
    return x[-1] + x[1:] + x[0]


print(inp('abcd'))

def inp(x):
    return x[-1]+x[1:]+x[0]

print(inp("abcd"))