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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: B = None
        self.s: E = None
        self.z: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: E = None
        self.x: B = None
        self.w: D = None
        self.r: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: B = None
        self.s: E = None
        self.z: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: E = None
        self.x: B = None
        self.w: D = None
        self.r: B = None
        self.txt = txt

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

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