Advertisement
CLazStudio

q198446077

Feb 22nd, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. a, p1, b, p2, c, p3, d = raw_input().split()
  2. if (a>=0 and a<=255 and b>=0 and b<=255 and c>=0 and c<=255 and d>=0 and d<=255 and
  3.     p1 == '.' and p2 == '.' and p3 == '.'):
  4.   print('YES')
  5. else:
  6.   print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement