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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: B = None
        self.s: E = None
        self.x: B = None
        self.v: B = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: B = None
        self.s: E = None
        self.x: B = None
        self.v: B = None
        self.t: A = None
        self.txt = txt

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

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

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

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