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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: D = None
        self.t: A = None
        self.p: E = None
        self.q: F = None
        self.o: D = None
        self.x: H = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: C = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: C = None
        self.q: B = None
        self.p: G = None
        self.x: D = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: D = None
        self.t: A = None
        self.p: E = None
        self.q: F = None
        self.o: D = None
        self.x: H = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: C = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: C = None
        self.q: B = None
        self.p: G = None
        self.x: D = None
        self.w: C = None
        self.txt = txt

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

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

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

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