package main import . "fmt" func main() { var s string Scan(&s) b:=[]byte(s) c:=len(b) b[c-1]='1'+'0'-b[c-1] Println(string(b)) }