class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: C = None
        self.o: A = None
        self.w: B = None
        self.z: B = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: B = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

j = A("j")
c = B("c")
g = C("g")
e = D("e")
a = E("a")
m = F("m")
f = C("f")
l = A("l")
d = B("d")
h = F("h")

j.s = d
j.w = d
j.z = d
j.y = f
j.o = l
j.u = e
c.x = e
c.y = d
c.t = h
g.z = e
g.y = c
g.v = l
g.q = m
g.x = a
e.r = c
a.q = g
m.u = a
m.s = f
m.q = f
m.v = h
f.z = e
f.y = d
f.v = l
f.q = m
f.x = a
l.s = d
l.y = g
l.o = j
l.w = c
l.z = c
l.u = e
d.x = e
d.y = c
d.t = h
h.u = a
h.s = f
h.q = f
h.v = m
assert e.r.x.r.x.r.y.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: C = None
        self.o: A = None
        self.w: B = None
        self.z: B = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: B = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

j = A("j")
c = B("c")
g = C("g")
e = D("e")
a = E("a")
m = F("m")
f = C("f")
l = A("l")
d = B("d")
h = F("h")

j.s = d
j.w = d
j.z = d
j.y = f
j.o = l
j.u = e
c.x = e
c.y = d
c.t = h
g.z = e
g.y = c
g.v = l
g.q = m
g.x = a
e.r = c
a.q = g
m.u = a
m.s = f
m.q = f
m.v = h
f.z = e
f.y = d
f.v = l
f.q = m
f.x = a
l.s = d
l.y = g
l.o = j
l.w = c
l.z = c
l.u = e
d.x = e
d.y = c
d.t = h
h.u = a
h.s = f
h.q = f
h.v = m
assert e.r.x.r.x.r.y.txt == "d"