class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: H = None
        self.z: E = None
        self.txt = txt

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

b = A("b")
c = B("c")
d = C("d")
e = D("e")
n = E("n")
i = F("i")
m = G("m")
k = H("k")
g = D("g")
a = B("a")

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: H = None
        self.z: E = None
        self.txt = txt

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

b = A("b")
c = B("c")
d = C("d")
e = D("e")
n = E("n")
i = F("i")
m = G("m")
k = H("k")
g = D("g")
a = B("a")

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