class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.r: G = None
        self.t: F = None
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: B = None
        self.y: F = None
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: H = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: B = None
        self.q: F = None
        self.x: E = None
        self.u: D = None
        self.v: E = None
        self.t: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: B = None
        self.y: F = None
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: H = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.p: B = None
        self.q: F = None
        self.x: E = None
        self.u: D = None
        self.v: E = None
        self.t: B = None
        self.txt = txt

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

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

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