class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: G = None
        self.y: H = None
        self.p: C = None
        self.z: B = None
        self.t: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: B = None
        self.q: H = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: H = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: F = None
        self.t: G = None
        self.o: B = None
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: B = None
        self.q: H = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: H = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: F = None
        self.t: G = None
        self.o: B = None
        self.y: A = None
        self.txt = txt

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

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