class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: G = None
        self.y: C = None
        self.o: G = None
        self.z: E = None
        self.q: E = None
        self.w: B = None
        self.v: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: H = None
        self.w: A = None
        self.z: A = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: B = None
        self.v: F = None
        self.z: A = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: H = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: E = None
        self.q: C = None
        self.t: E = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: H = None
        self.w: A = None
        self.z: A = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: B = None
        self.v: F = None
        self.z: A = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: H = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.o: E = None
        self.q: C = None
        self.t: E = None
        self.v: F = None
        self.txt = txt

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

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