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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: C = None
        self.t: C = None
        self.x: C = None
        self.z: H = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: H = None
        self.o: F = None
        self.s: A = None
        self.u: I = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: C = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: D = None
        self.o: H = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: A = None
        self.q: I = None
        self.u: F = None
        self.z: F = None
        self.o: E = None
        self.v: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: C = None
        self.t: C = None
        self.x: C = None
        self.z: H = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: H = None
        self.o: F = None
        self.s: A = None
        self.u: I = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: C = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: D = None
        self.o: H = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: A = None
        self.q: I = None
        self.u: F = None
        self.z: F = None
        self.o: E = None
        self.v: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: D = None
        self.txt = txt

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

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