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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: C = None
        self.w: E = None
        self.t: E = None
        self.z: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: C = None
        self.x: E = None
        self.t: F = None
        self.s: F = None
        self.r: C = None
        self.p: D = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: H = None
        self.s: B = None
        self.u: C = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

j = A("j")
b = B("b")
g = C("g")
c = D("c")
k = E("k")
a = F("a")
m = G("m")
h = H("h")
l = D("l")
n = A("n")

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: C = None
        self.w: E = None
        self.t: E = None
        self.z: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: C = None
        self.x: E = None
        self.t: F = None
        self.s: F = None
        self.r: C = None
        self.p: D = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: H = None
        self.s: B = None
        self.u: C = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

j = A("j")
b = B("b")
g = C("g")
c = D("c")
k = E("k")
a = F("a")
m = G("m")
h = H("h")
l = D("l")
n = A("n")

j.p = n
j.x = n
j.t = g
j.w = a
j.r = a
j.u = c
b.r = h
b.v = g
b.w = k
b.t = k
b.z = k
g.o = a
g.q = k
c.o = b
c.z = g
c.r = g
c.x = k
c.t = a
c.s = a
c.w = a
c.p = l
k.r = b
k.s = b
k.w = b
k.v = h
k.u = g
a.w = k
a.t = b
m.w = b
m.t = c
h.p = b
l.o = b
l.z = g
l.r = g
l.x = k
l.t = a
l.s = a
l.w = a
l.p = c
n.p = j
n.x = j
n.t = g
n.w = a
n.r = a
n.u = c
assert c.p.p.p.w.t.z.txt == "k"