class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: E = None
        self.s: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: H = None
        self.r: E = None
        self.q: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: B = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: H = None
        self.r: E = None
        self.q: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: B = None
        self.u: D = None
        self.txt = txt

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

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

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