import sequtils, strutils const c = join toSeq (0 .. 60) let d = parseInt readLine stdin echo c[d]