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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: D = None
        self.y: E = None
        self.s: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: B = None
        self.q: A = None
        self.t: A = None
        self.y: C = None
        self.w: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: D = None
        self.y: E = None
        self.s: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: B = None
        self.q: A = None
        self.t: A = None
        self.y: C = None
        self.w: B = None
        self.txt = txt

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

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

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