class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: E = None
        self.x: E = None
        self.s: B = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: D = None
        self.y: A = None
        self.w: I = None
        self.r: D = None
        self.p: E = None
        self.u: C = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: E = None
        self.x: E = None
        self.s: B = None
        self.y: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: D = None
        self.y: A = None
        self.w: I = None
        self.r: D = None
        self.p: E = None
        self.u: C = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

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

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