class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: I = None
        self.w: I = None
        self.p: C = None
        self.t: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: D = None
        self.q: I = None
        self.s: D = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: E = None
        self.v: H = None
        self.u: I = None
        self.x: A = None
        self.y: F = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: F = None
        self.o: F = None
        self.x: C = None
        self.y: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: E = None
        self.r: I = None
        self.u: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: A = None
        self.p: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: D = None
        self.q: I = None
        self.s: D = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: E = None
        self.v: H = None
        self.u: I = None
        self.x: A = None
        self.y: F = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: F = None
        self.o: F = None
        self.x: C = None
        self.y: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: E = None
        self.r: I = None
        self.u: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: A = None
        self.p: B = None
        self.txt = txt

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

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