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

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

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

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

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

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

g = A("g")
e = B("e")
b = C("b")
a = D("a")
l = E("l")
i = F("i")
n = E("n")
j = C("j")

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

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

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

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

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

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

g = A("g")
e = B("e")
b = C("b")
a = D("a")
l = E("l")
i = F("i")
n = E("n")
j = C("j")

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