diff --git a/templates/problem/problem.html b/templates/problem/problem.html
index 672f303..d3ac052 100644
--- a/templates/problem/problem.html
+++ b/templates/problem/problem.html
@@ -258,6 +258,14 @@
{{ _('Memory limit:') }}
{{ problem.memory_limit|kbsimpleformat }}
+
+ {% for name, limit in problem.language_memory_limit %}
+
+ {{ name }}
+ {{ limit|kbsimpleformat }}
+
+ {% endfor %}
+
{{ _('Input:') }}
@@ -268,14 +276,6 @@
{{ _('Output:') }}
{{ fileio_output or _('stdout') }}
-
- {% for name, limit in problem.language_memory_limit %}
-
- {{ name }}
- {{ limit|kbsimpleformat }}
-
- {% endfor %}
-