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

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

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: B = None
        self.y: A = None
        self.r: D = None
        self.x: F = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: B = None
        self.y: A = None
        self.r: D = None
        self.x: F = None
        self.w: F = None
        self.txt = txt

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

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

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

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