class A:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: A = None
        self.w: A = None
        self.v: F = None
        self.p: E = None
        self.q: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: G = None
        self.z: B = None
        self.s: B = None
        self.v: B = None
        self.q: G = None
        self.y: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: A = None
        self.w: E = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: C = None
        self.txt = txt

i = A("i")
k = B("k")
b = C("b")
c = D("c")
f = E("f")
h = F("h")
g = G("g")
j = B("j")
n = A("n")

i.t = n
i.x = n
i.w = n
i.q = n
i.v = h
i.p = f
k.t = j
k.r = j
k.s = c
k.x = c
k.y = n
k.u = n
k.w = b
b.r = f
b.t = g
b.q = g
b.z = j
b.s = j
b.y = j
b.v = k
c.t = n
c.w = i
f.w = i
h.y = b
h.z = n
h.w = f
h.o = i
g.q = b
g.s = b
j.t = k
j.r = k
j.s = c
j.x = c
j.y = n
j.u = i
j.w = b
n.t = i
n.x = i
n.w = i
n.q = i
n.v = h
n.p = f
assert k.x.w.x.w.v.w.w.txt == "
class A:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: A = None
        self.w: A = None
        self.v: F = None
        self.p: E = None
        self.q: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: G = None
        self.z: B = None
        self.s: B = None
        self.v: B = None
        self.q: G = None
        self.y: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: A = None
        self.w: E = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: C = None
        self.txt = txt

i = A("i")
k = B("k")
b = C("b")
c = D("c")
f = E("f")
h = F("h")
g = G("g")
j = B("j")
n = A("n")

i.t = n
i.x = n
i.w = n
i.q = n
i.v = h
i.p = f
k.t = j
k.r = j
k.s = c
k.x = c
k.y = n
k.u = n
k.w = b
b.r = f
b.t = g
b.q = g
b.z = j
b.s = j
b.y = j
b.v = k
c.t = n
c.w = i
f.w = i
h.y = b
h.z = n
h.w = f
h.o = i
g.q = b
g.s = b
j.t = k
j.r = k
j.s = c
j.x = c
j.y = n
j.u = i
j.w = b
n.t = i
n.x = i
n.w = i
n.q = i
n.v = h
n.p = f
assert k.x.w.x.w.v.w.w.txt == "i"