import Glibc
extension String: CollectionType {}

//var inp = readLine()!.split(" ").map { Int($0)! }
var n = readLine()!.characters.map { String($0) }
if n[0] == n[1] || n[1] == n[2] || n[2] == n[0] {
  print("No")
} else {
  print("Yes")
}