class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: F = None
        self.p: H = None
        self.x: C = None
        self.w: C = None
        self.s: E = None
        self.t: H = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: C = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: E = None
        self.v: G = None
        self.q: A = None
        self.w: A = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: F = None
        self.u: H = None
        self.r: E = None
        self.w: I = None
        self.v: H = None
        self.q: B = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: E = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: B = None
        self.z: A = None
        self.o: E = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: C = None
        self.x: E = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: D = None
        self.x: C = None
        self.q: B = None
        self.y: F = None
        self.p: G = None
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: C = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: E = None
        self.v: G = None
        self.q: A = None
        self.w: A = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: F = None
        self.u: H = None
        self.r: E = None
        self.w: I = None
        self.v: H = None
        self.q: B = None
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: E = None
        self.z: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: B = None
        self.z: A = None
        self.o: E = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: C = None
        self.x: E = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: D = None
        self.x: C = None
        self.q: B = None
        self.y: F = None
        self.p: G = None
        self.u: A = None
        self.txt = txt

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

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