class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: F = None
        self.x: I = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: E = None
        self.y: H = None
        self.u: E = None
        self.t: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: A = None
        self.t: E = None
        self.txt = txt

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

k.q = a
b.w = a
b.p = j
b.r = f
b.t = c
f.t = e
f.q = e
f.r = j
f.x = i
f.p = k
j.s = a
l.u = b
l.s = i
l.x = e
l.t = c
i.v = a
i.y = a
i.z = l
i.u = l
i.t = c
c.z = b
a.y = b
a.v = b
a.p = i
e.p = k
e.u = k
e.t = l
assert j.s.y.w.p.u.s.u.s.txt == "
class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: F = None
        self.x: I = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: E = None
        self.y: H = None
        self.u: E = None
        self.t: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: A = None
        self.t: E = None
        self.txt = txt

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

k.q = a
b.w = a
b.p = j
b.r = f
b.t = c
f.t = e
f.q = e
f.r = j
f.x = i
f.p = k
j.s = a
l.u = b
l.s = i
l.x = e
l.t = c
i.v = a
i.y = a
i.z = l
i.u = l
i.t = c
c.z = b
a.y = b
a.v = b
a.p = i
e.p = k
e.u = k
e.t = l
assert j.s.y.w.p.u.s.u.s.txt == "i"