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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: B = None
        self.z: B = None
        self.v: A = None
        self.txt = txt

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

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

n = A("n")
l = B("l")
a = C("a")
j = D("j")
b = E("b")
f = F("f")
h = C("h")
d = F("d")

n.p = j
n.o = j
n.z = l
n.t = l
n.y = b
n.v = h
l.o = n
l.u = n
l.z = b
a.v = f
a.w = f
j.t = h
j.y = l
j.z = l
j.v = n
b.w = n
b.u = h
b.z = l
b.q = f
f.w = b
f.x = d
f.t = d
f.o = l
h.v = d
h.w = f
d.w = b
d.x = f
d.t = f
d.o = l
assert a.w.w.z.txt == "
class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: B = None
        self.y: E = None
        self.o: D = None
        self.t: B = None
        self.v: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: B = None
        self.z: B = None
        self.v: A = None
        self.txt = txt

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

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

n = A("n")
l = B("l")
a = C("a")
j = D("j")
b = E("b")
f = F("f")
h = C("h")
d = F("d")

n.p = j
n.o = j
n.z = l
n.t = l
n.y = b
n.v = h
l.o = n
l.u = n
l.z = b
a.v = f
a.w = f
j.t = h
j.y = l
j.z = l
j.v = n
b.w = n
b.u = h
b.z = l
b.q = f
f.w = b
f.x = d
f.t = d
f.o = l
h.v = d
h.w = f
d.w = b
d.x = f
d.t = f
d.o = l
assert a.w.w.z.txt == "l"