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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: G = None
        self.o: H = None
        self.r: C = None
        self.y: F = None
        self.p: E = None
        self.v: E = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: B = None
        self.p: G = None
        self.w: D = None
        self.r: B = None
        self.o: F = None
        self.y: H = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: D = None
        self.u: C = None
        self.w: H = None
        self.r: E = None
        self.t: C = None
        self.txt = txt

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

l = A("l")
h = B("h")
b = C("b")
a = D("a")
e = E("e")
j = F("j")
i = G("i")
n = H("n")
k = A("k")
c = E("c")

l.p = a
l.o = a
l.u = b
l.y = h
l.r = n
l.v = n
h.s = k
h.z = i
h.q = i
h.o = n
h.r = b
h.y = j
h.p = c
h.v = c
b.x = c
b.w = n
b.y = n
a.v = b
a.q = i
e.u = l
e.q = h
e.r = h
e.p = i
e.w = a
e.z = a
e.o = j
e.y = n
j.s = a
i.z = a
i.y = a
i.u = b
i.t = b
i.w = n
i.r = c
n.p = l
n.t = k
k.p = a
k.o = a
k.u = b
k.y = h
k.r = n
k.v = n
c.u = l
c.q = h
c.r = h
c.p = i
c.w = a
c.z = a
c.o = j
c.y = n
assert b.y.t.v.p.y.s.o.txt == "
class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: C = None
        self.o: D = None
        self.y: B = None
        self.r: H = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: G = None
        self.o: H = None
        self.r: C = None
        self.y: F = None
        self.p: E = None
        self.v: E = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: B = None
        self.p: G = None
        self.w: D = None
        self.r: B = None
        self.o: F = None
        self.y: H = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: D = None
        self.u: C = None
        self.w: H = None
        self.r: E = None
        self.t: C = None
        self.txt = txt

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

l = A("l")
h = B("h")
b = C("b")
a = D("a")
e = E("e")
j = F("j")
i = G("i")
n = H("n")
k = A("k")
c = E("c")

l.p = a
l.o = a
l.u = b
l.y = h
l.r = n
l.v = n
h.s = k
h.z = i
h.q = i
h.o = n
h.r = b
h.y = j
h.p = c
h.v = c
b.x = c
b.w = n
b.y = n
a.v = b
a.q = i
e.u = l
e.q = h
e.r = h
e.p = i
e.w = a
e.z = a
e.o = j
e.y = n
j.s = a
i.z = a
i.y = a
i.u = b
i.t = b
i.w = n
i.r = c
n.p = l
n.t = k
k.p = a
k.o = a
k.u = b
k.y = h
k.r = n
k.v = n
c.u = l
c.q = h
c.r = h
c.p = i
c.w = a
c.z = a
c.o = j
c.y = n
assert b.y.t.v.p.y.s.o.txt == "a"