import java.util.*;
public class xiaowuc1 {
  private static int get(String s) {
    if(s.equals("E")) return 0;
    if(s.equals("NE")) return 45;
    if(s.equals("N")) return 90;
    if(s.equals("NW")) return 135;
    if(s.equals("W")) return 180;
    if(s.equals("SW")) return 225;
    if(s.equals("S")) return 270;
    if(s.equals("SE")) return 315;
    throw new RuntimeException();
  }
  public static void main(String[] args) throws Exception {
    Scanner sc = new Scanner(System.in);
    String have = sc.next(), want = sc.next();
    int a = get(have);
    int b = get(want);
    if(b < a) b += 360;
    if(a == b) System.out.println("Keep going straight");
    else if(a + 180 == b) System.out.println("U-turn");
    else if(a + 180 > b) System.out.println("Turn " + (b-a) + " degrees port");
    else System.out.println("Turn " + (a+360-b) + " degrees starboard");
  }
}
