class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: G = None
        self.u: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: F = None
        self.r: A = None
        self.s: C = None
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: C = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: F = None
        self.r: A = None
        self.s: C = None
        self.y: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: C = None
        self.z: C = None
        self.txt = txt

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

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

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