class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

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

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

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

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

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

h = A("h")
j = B("j")
a = C("a")
l = D("l")
e = E("e")
f = F("f")
i = D("i")
c = C("c")
b = C("b")

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

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

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

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

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

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

h = A("h")
j = B("j")
a = C("a")
l = D("l")
e = E("e")
f = F("f")
i = D("i")
c = C("c")
b = C("b")

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