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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: C = None
        self.v: A = None
        self.t: C = None
        self.u: C = None
        self.w: A = None
        self.txt = txt

j = A("j")
b = B("b")
l = C("l")
i = D("i")
e = E("e")
g = F("g")
d = D("d")
m = A("m")
f = B("f")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: C = None
        self.v: A = None
        self.t: C = None
        self.u: C = None
        self.w: A = None
        self.txt = txt

j = A("j")
b = B("b")
l = C("l")
i = D("i")
e = E("e")
g = F("g")
d = D("d")
m = A("m")
f = B("f")

j.s = e
j.z = g
j.u = d
b.s = f
b.r = d
b.t = d
b.v = l
l.o = e
l.x = j
i.t = d
i.x = d
i.p = g
e.u = f
e.t = l
e.x = m
g.r = l
g.z = l
g.t = l
g.u = l
g.v = m
g.w = j
d.t = i
d.x = i
d.p = g
m.s = e
m.z = g
m.u = d
f.s = b
f.r = i
f.v = l
f.t = d
assert d.t.p.w.z.t.o.txt == "e"