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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: F = None
        self.o: F = None
        self.q: D = None
        self.t: A = None
        self.x: H = None
        self.v: B = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: G = None
        self.r: A = None
        self.s: A = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: F = None
        self.r: D = None
        self.x: G = None
        self.t: H = None
        self.o: A = None
        self.z: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: H = None
        self.p: C = None
        self.o: F = None
        self.w: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: F = None
        self.o: F = None
        self.q: D = None
        self.t: A = None
        self.x: H = None
        self.v: B = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: G = None
        self.r: A = None
        self.s: A = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: F = None
        self.r: D = None
        self.x: G = None
        self.t: H = None
        self.o: A = None
        self.z: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: H = None
        self.p: C = None
        self.o: F = None
        self.w: F = None
        self.txt = txt

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

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

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