class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: F = None
        self.r: B = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: C = None
        self.r: C = None
        self.o: C = None
        self.q: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: D = None
        self.s: H = None
        self.q: F = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: C = None
        self.r: A = None
        self.t: G = None
        self.o: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: C = None
        self.r: C = None
        self.o: C = None
        self.q: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: D = None
        self.s: H = None
        self.q: F = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: C = None
        self.r: A = None
        self.t: G = None
        self.o: C = None
        self.txt = txt

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

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

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

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