Skip to content

Instantly share code, notes, and snippets.

@arijitx
Created August 1, 2016 08:12
Show Gist options
  • Save arijitx/e710b624ac5d807b902f8b5253540b15 to your computer and use it in GitHub Desktop.
Save arijitx/e710b624ac5d807b902f8b5253540b15 to your computer and use it in GitHub Desktop.
n=raw_input()
l=[x for x in raw_input().split()]
cond=False
for i in l:
k=list(i)
if sorted(k,reverse=True)==k or sorted(k)==k:
cond=True
else:
cond=False
break
if cond:print 'Gyrant Numbers'
else:print 'Not Gyrant Numbers'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment