class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: A = None
        self.y: H = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: A = None
        self.x: G = None
        self.t: G = None
        self.u: D = None
        self.r: D = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: F = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: D = None
        self.t: E = None
        self.w: A = None
        self.q: H = None
        self.v: H = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: H = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: F = None
        self.u: D = None
        self.txt = txt

j = A("j")
a = B("a")
n = C("n")
h = D("h")
m = E("m")
b = F("b")
e = G("e")
k = H("k")
g = C("g")

j.p = e
a.v = j
a.w = j
a.y = k
a.x = g
n.y = g
n.p = j
n.x = e
n.t = e
n.u = h
n.r = h
n.v = a
h.p = k
h.t = b
h.x = a
m.q = k
m.y = g
b.u = k
b.q = k
b.v = k
b.s = h
b.t = m
b.y = m
b.w = j
e.y = g
e.v = k
e.x = a
k.y = g
k.r = b
k.u = h
g.y = n
g.p = j
g.x = e
g.t = e
g.u = h
g.r = h
g.v = a
assert k.u.t.s.t.u.u.t.t.txt == "
class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: A = None
        self.y: H = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: A = None
        self.x: G = None
        self.t: G = None
        self.u: D = None
        self.r: D = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.t: F = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: D = None
        self.t: E = None
        self.w: A = None
        self.q: H = None
        self.v: H = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: H = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: F = None
        self.u: D = None
        self.txt = txt

j = A("j")
a = B("a")
n = C("n")
h = D("h")
m = E("m")
b = F("b")
e = G("e")
k = H("k")
g = C("g")

j.p = e
a.v = j
a.w = j
a.y = k
a.x = g
n.y = g
n.p = j
n.x = e
n.t = e
n.u = h
n.r = h
n.v = a
h.p = k
h.t = b
h.x = a
m.q = k
m.y = g
b.u = k
b.q = k
b.v = k
b.s = h
b.t = m
b.y = m
b.w = j
e.y = g
e.v = k
e.x = a
k.y = g
k.r = b
k.u = h
g.y = n
g.p = j
g.x = e
g.t = e
g.u = h
g.r = h
g.v = a
assert k.u.t.s.t.u.u.t.t.txt == "m"