Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
176
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from math import sqrt
  2. data = list(map(int, input().split()))
  3.  
  4. data = [i for i in data if sqrt(i) == int(sqrt(i))]
  5.  
  6. data.sort(reverse=True)
  7. print(*data)
Advertisement
RAW Paste Data Copied
Advertisement