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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.p: D = None
        self.q: E = None
        self.w: D = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: I = None
        self.s: H = None
        self.w: H = None
        self.o: I = None
        self.t: E = None
        self.x: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: F = None
        self.r: G = None
        self.x: F = None
        self.t: D = None
        self.v: A = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: D = None
        self.s: F = None
        self.z: H = None
        self.t: I = None
        self.x: C = None
        self.q: B = None
        self.w: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.o: H = None
        self.w: B = None
        self.u: C = None
        self.p: F = None
        self.z: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.p: D = None
        self.q: E = None
        self.w: D = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: I = None
        self.s: H = None
        self.w: H = None
        self.o: I = None
        self.t: E = None
        self.x: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: F = None
        self.r: G = None
        self.x: F = None
        self.t: D = None
        self.v: A = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: D = None
        self.s: F = None
        self.z: H = None
        self.t: I = None
        self.x: C = None
        self.q: B = None
        self.w: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.o: H = None
        self.w: B = None
        self.u: C = None
        self.p: F = None
        self.z: E = None
        self.txt = txt

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

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