class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: D = None
        self.r: B = None
        self.z: D = None
        self.u: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: B = None
        self.r: E = None
        self.s: D = None
        self.p: H = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: G = None
        self.s: D = None
        self.p: F = None
        self.w: H = None
        self.r: D = None
        self.q: E = None
        self.t: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: B = None
        self.r: E = None
        self.s: D = None
        self.p: H = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: G = None
        self.s: D = None
        self.p: F = None
        self.w: H = None
        self.r: D = None
        self.q: E = None
        self.t: H = None
        self.txt = txt

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

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