import sequtils,strutils,strscans const m : int64 = 1_000_000_007 var N = stdin.readline.parseInt ans, c : int64 d,cs : string proc ctoi(c : char) : int = return ord(c) - ord('0') proc pows(i : int64, s : string) : int64 = if s == "0" or s == "": return 1 elif s == "1": return i elif (s[^1].ctoi and 1) == 1: return i * pows(i, s[0..