class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.u: B = None
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: F = None
        self.r: D = None
        self.x: F = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: C = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: F = None
        self.u: B = None
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: F = None
        self.r: D = None
        self.x: F = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: C = None
        self.p: G = None
        self.txt = txt

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

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