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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: E = None
        self.s: F = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: D = None
        self.v: C = None
        self.x: C = None
        self.w: E = None
        self.r: B = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: A = None
        self.y: F = None
        self.v: B = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: F = None
        self.v: D = None
        self.x: G = None
        self.q: D = None
        self.s: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

b = A("b")
k = B("k")
e = C("e")
d = D("d")
n = E("n")
g = F("g")
l = G("l")
i = D("i")
m = A("m")
h = C("h")

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: E = None
        self.s: F = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: D = None
        self.v: C = None
        self.x: C = None
        self.w: E = None
        self.r: B = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: A = None
        self.y: F = None
        self.v: B = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: F = None
        self.v: D = None
        self.x: G = None
        self.q: D = None
        self.s: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

b = A("b")
k = B("k")
e = C("e")
d = D("d")
n = E("n")
g = F("g")
l = G("l")
i = D("i")
m = A("m")
h = C("h")

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