P1075 statement parsing

Title Description

String PASCAL language code length does not exceed 255, only a, b, c 3 variables, and only assignment statements, an assignment can only be a number or a variable, the format of each assignment statement is [变量]:=[变量或一位整数];. Unassigned variable value of zero. An output value of a, b, c of.

Input Format

String (<255) PASCAL language, only a, b, c 3 variables, and only assignment statements, an assignment can only be a number or a variable, the variable is 0 unassigned.

Output Format

It outputs a, b, c of the final value.

Sample input

a:=3;b:=4;c:=5;

Sample Output

3 4 5

Guess you like

Origin www.cnblogs.com/problems/p/P1075.html