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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: D = None
        self.v: G = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: A = None
        self.v: E = None
        self.w: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: F = None
        self.w: D = None
        self.o: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: D = None
        self.o: E = None
        self.x: C = None
        self.w: C = None
        self.s: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: B = None
        self.r: A = None
        self.q: B = None
        self.x: E = None
        self.p: B = None
        self.w: E = None
        self.o: E = None
        self.z: G = None
        self.txt = txt

k = A("k")
g = B("g")
e = C("e")
b = D("b")
j = E("j")
m = F("m")
d = G("d")
a = H("a")
l = I("l")

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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: D = None
        self.v: G = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.q: A = None
        self.v: E = None
        self.w: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: F = None
        self.w: D = None
        self.o: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: D = None
        self.o: E = None
        self.x: C = None
        self.w: C = None
        self.s: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: B = None
        self.r: A = None
        self.q: B = None
        self.x: E = None
        self.p: B = None
        self.w: E = None
        self.o: E = None
        self.z: G = None
        self.txt = txt

k = A("k")
g = B("g")
e = C("e")
b = D("b")
j = E("j")
m = F("m")
d = G("d")
a = H("a")
l = I("l")

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